javascript - Clustering Google Maps API V3 -
could please tell me how find pixel co ordinates of marker in google maps api v3?
you first need latitude , longitude marker.getlatlng()
. have latlng
object. next need transform geographic coordinates pixel coordinates, , map.fromlatlngtocontainerpixel
.
so:
var pixelposition = map.fromlatlngtocontainerpixel(marker.getlatlng());
Comments
Post a Comment