Hi Ben The positionOverlay() method is called whenever the center of the map or its zoom level is changed. In your implementation of this method you should reposition your custom overlay, calculating a new position for it based upon the current map state. To do this you need to map the overlay's geographic coordinates to values within the owning pane's coordinate system.
When your overlay is added to the map it's pane property is initialized with the pane the overlay has been added to and you use this reference to perform the translation using the fromLatLngToPaneCoords() method. The method is documented here: http://code.google.com/apis/maps/documentation/flash/reference.html#IPane.fromLatLngToPaneCoords For a working example take a look at the custom tooltip demo here: http://gmaps-samples-flash.googlecode.com/svn/trunk/demos/TooltipOverlayDemo/TooltipOverlayDemo.html If you View Source on the example the custom overlay is implemented by the com.google.maps.examples.TooltipOverlay class. Cheers Adam On Dec 23, 11:58 am, Benji <[email protected]> wrote: > Would anyone like to provide a little more depth to the method > positionOverlay of the OverlayBase class? > > I have an image I wish to overlay, but do not understand how to > position the image relative to the map. > > Thanks in Advance! > Ben --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API For Flash" 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-for-flash?hl=en -~----------~----~----~----~------~----~------~--~---
