diff options
author | Étienne Loks <etienne.loks@proxience.com> | 2015-07-27 16:56:40 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@proxience.com> | 2015-07-27 16:57:23 +0200 |
commit | fd28c2563a802775fa8d45639a1a60c29d67e999 (patch) | |
tree | 5244ae99e83170ee000af6d9b63231c88d985b25 | |
parent | 744633f3153ac5cf647e0d9691666a3e691cb426 (diff) | |
download | Chimère-fd28c2563a802775fa8d45639a1a60c29d67e999.tar.bz2 Chimère-fd28c2563a802775fa8d45639a1a60c29d67e999.zip |
JS: remove automatic zoom on JSON loadingv2.1-geojson
-rw-r--r-- | chimere/static/chimere/js/jquery.chimere.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/chimere/static/chimere/js/jquery.chimere.js b/chimere/static/chimere/js/jquery.chimere.js index 0af3f47..16a7832 100644 --- a/chimere/static/chimere/js/jquery.chimere.js +++ b/chimere/static/chimere/js/jquery.chimere.js @@ -986,16 +986,15 @@ OpenLayers.Layer.MapQuestOSM = OpenLayers.Class(OpenLayers.Layer.XYZ, { // add json layer addJSON: function(json_url){ settings.layerJson = new OpenLayers.Layer.Vector("GeoJSON", { - projection: EPSG_PROJECTION, - strategies: [new OpenLayers.Strategy.Fixed()], + projection: EPSG_DISPLAY_PROJECTION, + strategies: [new OpenLayers.Strategy.BBOX()], protocol: new OpenLayers.Protocol.HTTP({ url: json_url, format: new OpenLayers.Format.GeoJSON() }) }); settings.map.addLayer(settings.layerJson); - settings.map.zoomToExtent(settings.layerJson.getDataExtent()); - // settings.layerJson.setOpacity(0.5); + settings.layerJson.setOpacity(0.8); }, // Put a route on the map addRoute: function(route) { |