Author: jbronn
Date: 2010-11-02 14:31:14 -0500 (Tue, 02 Nov 2010)
New Revision: 14445

Modified:
   django/trunk/django/contrib/gis/admin/options.py
Log:
Updated OpenLayers (now points to 2.10) and OpenStreetMap JavaScript URLs.

Modified: django/trunk/django/contrib/gis/admin/options.py
===================================================================
--- django/trunk/django/contrib/gis/admin/options.py    2010-11-02 18:41:23 UTC 
(rev 14444)
+++ django/trunk/django/contrib/gis/admin/options.py    2010-11-02 19:31:14 UTC 
(rev 14445)
@@ -32,7 +32,7 @@
     map_height = 400
     map_srid = 4326
     map_template = 'gis/admin/openlayers.html'
-    openlayers_url = 'http://openlayers.org/api/2.8/OpenLayers.js'
+    openlayers_url = 'http://openlayers.org/api/2.10/OpenLayers.js'
     point_zoom = num_zoom - 6
     wms_url = 'http://labs.metacarta.com/wms/vmap0'
     wms_layer = 'basic'
@@ -115,7 +115,7 @@
 if gdal.HAS_GDAL:
     class OSMGeoAdmin(GeoModelAdmin):
         map_template = 'gis/admin/osm.html'
-        extra_js = ['http://openstreetmap.org/openlayers/OpenStreetMap.js']
+        extra_js = ['http://www.openstreetmap.org/openlayers/OpenStreetMap.js']
         num_zoom = 20
         map_srid = 900913
         max_extent = '-20037508,-20037508,20037508,20037508'

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to