linepisode linepisode - 1 year ago 55
Javascript Question

Image copies itself when zoom-in and zoom-out on Google Maps

I have a minor problem with using custom image on google maps. When click zoom-in or zoom-out image count changes.

Anyone can give me idea?

Answer Source

You should related the dimension of the map to the zoom level

   myZoom= map.getZoom();

   tileSize: new google.maps.Size(myZoom*256, myZoom*256),

Because the number of tile x zoom displayed change