From 8ffe910ebf5bb85ba15eab66341580d44d4d00fe Mon Sep 17 00:00:00 2001 From: Tom Payne Date: Tue, 2 Jul 2013 13:56:03 +0200 Subject: [PATCH] Apply center constraint in custom projection examples --- examples/wms-custom-proj.js | 1 + examples/wms-image-custom-proj.js | 1 + 2 files changed, 2 insertions(+) diff --git a/examples/wms-custom-proj.js b/examples/wms-custom-proj.js index 8ea4cc8d87..87c7d6d7d1 100644 --- a/examples/wms-custom-proj.js +++ b/examples/wms-custom-proj.js @@ -62,6 +62,7 @@ var map = new ol.Map({ view: new ol.View2D({ projection: projection, center: [660000, 190000], + extent: extent, zoom: 2 }) }); diff --git a/examples/wms-image-custom-proj.js b/examples/wms-image-custom-proj.js index 460fd588fb..80262a7c03 100644 --- a/examples/wms-image-custom-proj.js +++ b/examples/wms-image-custom-proj.js @@ -54,6 +54,7 @@ var map = new ol.Map({ view: new ol.View2D({ projection: projection, center: [660000, 190000], + extent: extent, zoom: 2 }) });