I understand your frustration, I also past by that. There are basically 3 reference systems:
1. LatLng 2. World Coordinates (Point) 3. Div Pixel There are also 2 difference projections, one from the "map" and another one from the "Overlay". The one from the map transforms from LatLng to World Coordinates (look for Mercator Projection). The one from the Overlay from LatLng to Div Pixel (the pixels you want!). To convert from World Coordinates to Div Pixels you need to multiply by Math.pow(2, zoom) (Esa already mentioned it). You have (at least) two different approaches: 1 Create an overlap and use the Projection.LatLngtoDivPixel function 2 Work in World Coordinates and transform to Pixels every time you get a zoom_changed event from the map. > Is there another way to solve my problem instead of calculating each point manually? Thanks Maybe use a third party libraries. Have you look for Clustering libraries? Not sure if that is what you want to do. -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" 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-js-api-v3?hl=en.
