You wrote
>Mike, one more question- now that I've got my GPS coordinates taking me
>to the right location, how can i get the balloon to pop up
>automatically? Right now this code places a marker directly on top of
>my icon, but what I'd really like it to do is open the balloon with the
>information.
You'd have to loop through your markers, using .distanceFrom() to look
for the one that's nearest the chosen point, then call
GEvent.reigger(marker,"click") on it.
The big problem with that is that you're loading your markers with
GGeoXml, and that doesn't expose the markers that it adds to your map,
so you'd either have to switch to using a third party KML renderer that
does expose the markers, or listen for the marker .addOverlay()s, see
http://econym.org.uk/gmap/interceptor.htm which is trickier and not
futureproof.
--
Mike Williams
--
You received this message because you are subscribed to the Google Groups
"Google Maps API" 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.