See the JavaScript source code of this page: http://www.replyat.com/GL_SimpleSteps.asp Here when a user clicks any area of the map, a popup appears showing address, country name and country flag. Thus, it is possible to display any detail related to clicked area by using a JavaScript function that can retrieve details based on the address received by clicking the area. Ajax can be used to retrieve desired data from the server.
On Tue, Oct 4, 2011 at 1:07 AM, xelawho <[email protected]> wrote: > > then when the user rolls over and/or clicks the area a popup appears > > which can hold other HTML like Sales Rep's for that area, photos of > > the rep, etc. > > if you just want clicks, Mike's already done the work for you: > http://econym.org.uk/gmap/example_states.htm > > rollovers are more complicated. The click listener above works on > opening the infowindow at the point where the map was clicked. But you > would have to be careful coding something similar with a mouseover, > because you get a new point location every time the mouse moves. And > obviously you don't want to be opening up a new infowindow at each of > those points. So the question becomes do you get the infowindow to > follow the mouse or do you pick some arbitrary point within the > polygon to use as the position where to display your label/infowindow/ > div/whatever. > > Both are easily accomplished, but it's kind of a pivotal design > decision that you may as well make to begin with. > > one other complicating factor: v2 is now deprecated. if you're > embarking on a new project it's wise to do it in v3. > > -- > You received this message because you are subscribed to the Google Groups > "Google Maps API V2" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/google-maps-api?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google Maps API V2" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.
