summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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
commitfd28c2563a802775fa8d45639a1a60c29d67e999 (patch)
tree5244ae99e83170ee000af6d9b63231c88d985b25
parent744633f3153ac5cf647e0d9691666a3e691cb426 (diff)
downloadChimè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.js7
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) {