When double-clicking on an OpenLayers map, the screen is momentarily blank while the next zoom level draws.
Is this avoidable? It's not ideal, given that many other mapping APIs show a smooth zooming effect.
openlayers
When double-clicking on an OpenLayers map, the screen is momentarily blank while the next zoom level draws.
Is this avoidable? It's not ideal, given that many other mapping APIs show a smooth zooming effect.
Best Answer
You will have to change the layer transitionEffect to 'resize'. According to OpenLayers documentation:
transitionEffect
{String} The transition effect to use when the map is panned or zoomed.
There are currently two supported values
null
No transition effect (the default).
resize
Existing tiles are resized on zoom to provide a visual effect of the zoom having taken place immediately. As the new tiles become available, they are drawn over top of the resized tiles.