diff options
| -rw-r--r-- | chimere/widgets.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/chimere/widgets.py b/chimere/widgets.py index 2029858..bfa4fe7 100644 --- a/chimere/widgets.py +++ b/chimere/widgets.py @@ -146,6 +146,7 @@ class PointChooserWidget(forms.TextInput): value = None map_layers = get_map_layers(area_name) js = """ + 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'); var chimere_init_options = {}; @@ -153,7 +154,7 @@ class PointChooserWidget(forms.TextInput): chimere_init_options['dynamic_categories'] = false; chimere_init_options['edition'] = true; chimere_init_options["checked_categories"] = []; - """ % (settings.CHIMERE_EPSG_DISPLAY_PROJECTION, + """ % (settings.STATIC_URL, settings.CHIMERE_EPSG_DISPLAY_PROJECTION, settings.CHIMERE_EPSG_PROJECTION, ", ".join(map_layers)) #TODO: manage area @@ -217,6 +218,7 @@ class RouteChooserWidget(forms.TextInput): tpl = getMapJS(area_name) map_layers = get_map_layers(area_name) js = """ + 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'); var chimere_init_options = {}; @@ -225,7 +227,7 @@ class RouteChooserWidget(forms.TextInput): chimere_init_options['edition'] = true; chimere_init_options['edition_type_is_route'] = true; chimere_init_options["checked_categories"] = []; - """ % (settings.CHIMERE_EPSG_DISPLAY_PROJECTION, + """ % (settings.STATIC_URL, settings.CHIMERE_EPSG_DISPLAY_PROJECTION, settings.CHIMERE_EPSG_PROJECTION, ", ".join(map_layers)) tpl = u"<script type='text/javascript'><!--\n"\ |
