summaryrefslogtreecommitdiff
path: root/main/widgets.py
diff options
context:
space:
mode:
authoretienne <etienne@9215b0d5-fb2c-4bbd-8d3e-bd2e9090e864>2009-01-07 23:47:34 +0000
committeretienne <etienne@9215b0d5-fb2c-4bbd-8d3e-bd2e9090e864>2009-01-07 23:47:34 +0000
commitda1bc95c350b87246165f61aff33a14558d56190 (patch)
tree62d155e24dc6c99ff1eebfdcfd8f94d8d8bc9763 /main/widgets.py
parent1b266517ca627bc9f59347657cc65f0a4694436e (diff)
downloadChimère-da1bc95c350b87246165f61aff33a14558d56190.tar.bz2
Chimère-da1bc95c350b87246165f61aff33a14558d56190.zip
Work on IE compatibility...
git-svn-id: http://www.peacefrogs.net/svn/chimere/trunk@7 9215b0d5-fb2c-4bbd-8d3e-bd2e9090e864
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" % \