mirror of
https://github.com/django/django.git
synced 2024-12-22 17:16:24 +00:00
Fixed #26569 -- Updated OSM Mapnik constructor
This commit is contained in:
parent
f2b2a35699
commit
4e2ee86627
@ -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['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 %}
|
||||
|
Loading…
Reference in New Issue
Block a user