summaryrefslogtreecommitdiff
path: root/main/widgets.py
diff options
context:
space:
mode:
Diffstat (limited to 'main/widgets.py')
-rw-r--r--main/widgets.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/main/widgets.py b/main/widgets.py
index ba609e0..fea8a72 100644
--- a/main/widgets.py
+++ b/main/widgets.py
@@ -29,15 +29,15 @@ from chimere import settings
from django.contrib.gis.db import models
URL_OSM_JS = ["http://www.openlayers.org/api/OpenLayers.js",
- "http://openstreetmap.org/openlayers/OpenStreetMap.js"]
+ "http://www.openstreetmap.org/openlayers/OpenStreetMap.js"]
def getMapJS():
'''Variable initialization for drawing the map
'''
# projection, center and bounds definitions
- js = u"epsg_display_projection = new OpenLayers.Projection('EPSG:%d');\n" %\
- settings.EPSG_DISPLAY_PROJECTION
- js += u"epsg_projection = new OpenLayers.Projection('EPSG:%d');\n" % \
+ js = u"var epsg_display_projection = new OpenLayers.Projection('EPSG:%d')\
+;\n" % settings.EPSG_DISPLAY_PROJECTION
+ js += u"var epsg_projection = new OpenLayers.Projection('EPSG:%d');\n" % \
settings.EPSG_PROJECTION
js += u"var centerLonLat = new OpenLayers.LonLat(%f,\
%f).transform(epsg_display_projection, epsg_projection);\n" % \