Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Yes, you can disable the smooth zoom! But with some...changes. In V2 you could do just "disableContinuousZoom()" and solve the problem, but in this new version, google's guys didn't implemented it.</p> <p>This is the first possibility (and the worst in my opinion..):</p> <pre><code> * { -webkit-transition-property: none!important; transition-property: none!important; /* These doesn't affect anything, but, just in case. */ -webkit-animation: none!important; animation: none!important; } </code></pre> <p>(this solution is from: <a href="http://code.google.com/p/gmaps-api-issues/issues/detail?id=3033&amp;q=continuous%20zoom&amp;colspec=ID%20Type%20Status%20Introduced%20Fixed%20Summary%20Stars%20ApiType%20Internal">http://code.google.com/p/gmaps-api-issues/issues/detail?id=3033&amp;q=continuous%20zoom&amp;colspec=ID%20Type%20Status%20Introduced%20Fixed%20Summary%20Stars%20ApiType%20Internal</a>)</p> <p>The other solution, and I think, the best, is what has implemented in OpenLayers:</p> <pre><code>/** * APIMethod: setMapObjectCenter * Set the mapObject to the specified center and zoom * * Parameters: * center - {Object} MapObject LonLat format * zoom - {int} MapObject zoom format */ setMapObjectCenter: function(center, zoom) { if (this.animationEnabled === false &amp;&amp; zoom != this.mapObject.zoom) { var mapContainer = this.getMapContainer(); google.maps.event.addListenerOnce( this.mapObject, "idle", function() { mapContainer.style.visibility = ""; } ); mapContainer.style.visibility = "hidden"; } this.mapObject.setOptions({ center: center, zoom: zoom }); }, </code></pre> <p>This is fairly strange, because you use the map Container with styles, but depends of your case, maybe the best solution is this!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload