linepisode
linepisode

Reputation: 65

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?

Upvotes: 0

Views: 34

Answers (1)

ScaisEdge
ScaisEdge

Reputation: 133380

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

Upvotes: 1

Related Questions