Permalink
Browse files

Fixed #26569 -- Updated OSM Mapnik constructor

  • Loading branch information...
bgaechter authored and claudep committed Mar 29, 2016
1 parent f2b2a35 commit 4e2ee8662753ca6a2619039b903f11c60709f398
Showing with 1 addition and 2 deletions.
  1. +0 −1 django/contrib/gis/forms/widgets.py
  2. +1 −1 django/contrib/gis/templates/gis/openlayers-osm.html
@@ -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',
)
@@ -13,5 +13,5 @@
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 %}

0 comments on commit 4e2ee86

Please sign in to comment.