diff --git a/django/contrib/gis/forms/widgets.py b/django/contrib/gis/forms/widgets.py index 77291396a9..01d2f7e53f 100644 --- a/django/contrib/gis/forms/widgets.py +++ b/django/contrib/gis/forms/widgets.py @@ -95,7 +95,6 @@ class OSMWidget(BaseGeometryWidget): class Media: js = ( 'http://openlayers.org/api/2.13.1/OpenLayers.js', - 'http://www.openstreetmap.org/openlayers/OpenStreetMap.js', 'gis/js/OLMapWidget.js', ) diff --git a/django/contrib/gis/templates/gis/openlayers-osm.html b/django/contrib/gis/templates/gis/openlayers-osm.html index 7b644aaa8d..c24c0f30fb 100644 --- a/django/contrib/gis/templates/gis/openlayers-osm.html +++ b/django/contrib/gis/templates/gis/openlayers-osm.html @@ -13,5 +13,5 @@ options['scale_text'] = true; options['mouse_position'] = true; options['default_lon'] = {{ default_lon|unlocalize }}; options['default_lat'] = {{ default_lat|unlocalize }}; -options['base_layer'] = new OpenLayers.Layer.OSM.Mapnik("OpenStreetMap (Mapnik)"); +options['base_layer'] = new OpenLayers.Layer.OSM("OpenStreetMap (Mapnik)"); {% endblock %}