back to krasimirtsonev.com
to blog's home page

GoogleMaps API v3: convert LatLng object to actual pixels

It is not so easy as it looks like. You should get the map object's projection and the map's zoom to be able to calculate it.
The function returns Point object, which has .x and .y property - the actual pixels of your map's container.
Sharing ...
Commenting ...
blog comments powered by Disqus