summaryrefslogtreecommitdiff
path: root/chimere/widgets.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@peacefrogs.net>2012-11-13 17:36:20 +0100
committerÉtienne Loks <etienne.loks@peacefrogs.net>2012-11-13 17:36:20 +0100
commit8304d84ba1f15cce8f4a500d9645d7fa825a79ad (patch)
treebd6dbc143721966e082e0421241d0206ee1e9f55 /chimere/widgets.py
parent8ff6c0c107fbca1b3fd92480ec9139a316e62f44 (diff)
downloadChimère-8304d84ba1f15cce8f4a500d9645d7fa825a79ad.tar.bz2
Chimère-8304d84ba1f15cce8f4a500d9645d7fa825a79ad.zip
JS: Add resolutions and zoomoffset var to map admin.
Diffstat (limited to 'chimere/widgets.py')
-rw-r--r--chimere/widgets.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/chimere/widgets.py b/chimere/widgets.py
index 013cef4..185d134 100644
--- a/chimere/widgets.py
+++ b/chimere/widgets.py
@@ -266,6 +266,9 @@ class PointChooserWidget(forms.TextInput):
map_layers, default_area = get_map_layers(area_name)
map_layers = [js for n, js, default in map_layers]
js = """
+ var resolutions;
+ var zoomOffset;
+
OpenLayers.ImgPath = '%schimere/img/';
var EPSG_DISPLAY_PROJECTION = epsg_display_projection = new OpenLayers.Projection('EPSG:%s');
var EPSG_PROJECTION = epsg_projection = new OpenLayers.Projection('EPSG:%s');
@@ -346,6 +349,9 @@ class RouteChooserWidget(forms.TextInput):
map_layers, default_area = get_map_layers(area_name)
map_layers = [js for nm, js, default in map_layers]
js = """
+ var resolutions;
+ var zoomOffset;
+
var extra_url = "%s";
OpenLayers.ImgPath = '%schimere/img/';
var EPSG_DISPLAY_PROJECTION = epsg_display_projection = new OpenLayers.Projection('EPSG:%s');