David Ansermot Web Developer / TYPO3 Integrator

2mar/110

GoogleMaps stretched icons after map resize

If, like me, you have to resize your GoogleMap on your page with javascript (nldr. without page reloading) and have your marker custom icons stretched, here’s the solution I found.

After your map resize function, call this one :

  1. google.maps.event.trigger(myMap, ‘resize’);

Then after this, make a Zoom.

  1. myMap.setZoom(xx);

It’s done, your icons are right sized.

Hope this tip was helpfull for you.

qrCode

Posts that maybe you want to read ::

Commentaires (0) Trackbacks (0)

Aucun commentaire pour l'instant


Leave a comment

(required)

Aucun trackbacks pour l'instant