There are at least 2 ways to do it:

A. One polygon for each state with a click event handler, and keep
track of which polygon fired the event by passing some ID to the event
handler function.

B. AJAX call to the server and a database lookup.
This is a V2 example with counties instead of states:
http://maps.forum.nu/gm_main.html
Click anywhere in the US.

--
Marcelo - http://maps.forum.nu
--





On Dec 6, 11:06 am, matterzmore <joshlambertmob...@gmail.com> wrote:
> Greetings All!
>
> I could not find an answer to this question in the API documentation, so I
> will ask here:
>
> Is it possible to detect the click of an individual state from the map? I
> would like to hook this event to fire a Javascript function, but I'm not
> sure how to do this.
>
> Any help would be GREATLY appreciated!
>
> Thanks,
> Matterezmore

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to