Restrict maxZoom of the static-image example

Upscaling the image to zoom levels > 8 does not make sense, and it may even
cause canvas transformations to fail.
This commit is contained in:
Andreas Hocevar
2015-10-19 10:44:43 +02:00
parent 819b9ce6ca
commit c2bde4e482

View File

@@ -36,6 +36,7 @@ var map = new ol.Map({
view: new ol.View({
projection: projection,
center: ol.extent.getCenter(extent),
zoom: 2
zoom: 2,
maxZoom: 8
})
});