Updated OpenLayers version from 2.11 to 2.13

This commit is contained in:
Claude Paroz 2013-10-12 18:07:24 +02:00
parent dd839a2dfd
commit 21c2bfdff3
3 changed files with 9 additions and 3 deletions

View File

@ -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'

View File

@ -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',
)

View File

@ -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`
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^