> i want to implement a simple javascript function that gives me pixel > position of map on a mouse click event on map
The API provides as set of coordinate transformation tools, so you can do what you like with pixels and lat/longs http://code.google.com/apis/maps/documentation/reference.html#GMap2.fromContainerPixelToLatLng The API is event-driven, so you see what parameters are available from mouse events that you might be interested in - http://code.google.com/apis/maps/documentation/reference.html#GMap2.click Be aware that clicking on the map or on a clickable overlay (marker, infowindow) gives different results so that they can be dealt with differently. cheers, Ross K --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
