From c2bde4e4823fcfea0bae259fa57538ed8be4b395 Mon Sep 17 00:00:00 2001 From: Andreas Hocevar Date: Mon, 19 Oct 2015 10:44:43 +0200 Subject: [PATCH] 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. --- examples/static-image.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/static-image.js b/examples/static-image.js index 747d70b0b1..41bbc77bab 100644 --- a/examples/static-image.js +++ b/examples/static-image.js @@ -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 }) });