From 26d3c9b0171971cd3ea73e38a0617eeca36809a5 Mon Sep 17 00:00:00 2001 From: ptrourke Date: Mon, 15 Dec 2014 11:57:21 -0500 Subject: [PATCH] auto-center map even if settings.zoom is not null --- .../exhibit/extensions/openlayers/scripts/openlayers-view.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/viewshare/apps/exhibit/static/simile/exhibit/extensions/openlayers/scripts/openlayers-view.js b/viewshare/apps/exhibit/static/simile/exhibit/extensions/openlayers/scripts/openlayers-view.js index f870a696..3ab651fe 100644 --- a/viewshare/apps/exhibit/static/simile/exhibit/extensions/openlayers/scripts/openlayers-view.js +++ b/viewshare/apps/exhibit/static/simile/exhibit/extensions/openlayers/scripts/openlayers-view.js @@ -919,7 +919,7 @@ define([ self._map.zoomTo(settings.zoom); } - if (typeof bounds !== "undefined" && bounds !== null && settings.zoom === null && settings.center === null) { + if (typeof bounds !== "undefined" && bounds !== null && settings.center === null) { self._map.setCenter(bounds.getCenterLonLat()); }