Thank you Andrew and Mathieu for your quick responses :) I've managed to get what I'm after using fromLatLngToContainerPixel - I HAD tried DivPixel but it doesn't seem to update the figures when you move the map - ContainerPixel is.
I'll be able to move on from here and do what I need now - thanks! -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Andrew Leach Sent: 15 June 2009 14:16 To: Google Maps API Subject: Re: Detect position of marker relative to edge of map div On Jun 15, 1:54 pm, "Michael Price" <[email protected]> wrote: > 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? http://code.google.com/apis/maps/documentation/reference.html#GMap2.fromCont ainerPixelToLatLng I'm not sure what the difference is between ContainerPixel and DivPixel (I've never had to use them in earnest). Try those and see whether you can use the results. Andrew --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
