Hi, You can use GMap2.fromLatLngToDivPixel: http://code.google.com/intl/en-GB/apis/maps/documentation/reference.html#GMap2.fromLatLngToDivPixel for example: myMap.fromLatLngToDivPixel(myMarker.getLatLng()) gives you the pixel coordinates of the marker ((0,0) is the top left corner of the map)
If you want the absolute coordinates, look at GMercatorProjection.fromLatLngToPixel() : http://code.google.com/intl/en-GB/apis/maps/documentation/reference.html#GMercatorProjection.fromLatLngToPixel Mathieu On Jun 15, 2:54 pm, "Michael Price" <[email protected]> wrote: > Hi all, > > Is there an easy way to detect the X,Y of a marker as it currently appears > on the page, either absolutely, or relative to the edge of the div > containing the map? > > Thanks! > > Regards, > > Michael Price --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
