diff options
Diffstat (limited to 'chimere/widgets.py')
| -rw-r--r-- | chimere/widgets.py | 6 | 
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'); | 
