Wasn't it Rossko who wrote:
>
>> It would be nice to have a method for GMarker, etc. that would return
>> the underlying map (or null if the overlay has not been placed on a
>> map yet).
>
>But why? If an overlay is on a map, you put it there, you know you
>did it, and only need to remember that.
>You might use a custom property to do that, something like
> marker = new Gmarker(....) ;
> mymap.addOverlay(marker) ;
> marker.parentMap = whatever ;
Or even
GMap.prototype.myAddOverlay(overlay) {
this.addOverlay(overlay);
overlay.ParentMap = this;
}
GMap.prototype.myRemoveOverlay(overlay) {
this.removeOverlay(overlay);
overlay.ParentMap = null;
}
--
Mike Williams
http://econym.org.uk/gmap
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---