diff --git a/django/contrib/gis/admin/options.py b/django/contrib/gis/admin/options.py index 2385efd79e..6f88976819 100644 --- a/django/contrib/gis/admin/options.py +++ b/django/contrib/gis/admin/options.py @@ -31,7 +31,7 @@ class GeoModelAdmin(ModelAdmin): map_height = 400 map_srid = 4326 map_template = 'gis/admin/openlayers.html' - openlayers_url = 'http://openlayers.org/api/2.11/OpenLayers.js' + openlayers_url = 'http://openlayers.org/api/2.13/OpenLayers.js' point_zoom = num_zoom - 6 wms_url = 'http://vmap0.tiles.osgeo.org/wms/vmap0' wms_layer = 'basic' diff --git a/django/contrib/gis/forms/widgets.py b/django/contrib/gis/forms/widgets.py index 909684ef9c..e8322b950c 100644 --- a/django/contrib/gis/forms/widgets.py +++ b/django/contrib/gis/forms/widgets.py @@ -81,7 +81,7 @@ class OpenLayersWidget(BaseGeometryWidget): template_name = 'gis/openlayers.html' class Media: js = ( - 'http://openlayers.org/api/2.11/OpenLayers.js', + 'http://openlayers.org/api/2.13/OpenLayers.js', 'gis/js/OLMapWidget.js', ) @@ -96,7 +96,7 @@ class OSMWidget(BaseGeometryWidget): class Media: js = ( - 'http://openlayers.org/api/2.11/OpenLayers.js', + 'http://openlayers.org/api/2.13/OpenLayers.js', 'http://www.openstreetmap.org/openlayers/OpenStreetMap.js', 'gis/js/OLMapWidget.js', ) diff --git a/docs/releases/1.7.txt b/docs/releases/1.7.txt index eeec24842e..52f9eb0d43 100644 --- a/docs/releases/1.7.txt +++ b/docs/releases/1.7.txt @@ -186,6 +186,12 @@ Minor features ``html_email_template_name`` parameter used to send a multipart HTML email for password resets. +:mod:`django.contrib.gis` +^^^^^^^^^^^^^^^^^^^^^^^^^^ + +* The default OpenLayers library version included in widgets has been updated + from 2.11 to 2.13. + :mod:`django.contrib.messages` ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^