1
0
mirror of https://github.com/django/django.git synced 2024-12-23 01:25:58 +00:00

Fixed #26569 -- Updated OSM Mapnik constructor

This commit is contained in:
bgaechter 2016-03-29 23:19:36 +02:00 committed by Claude Paroz
parent f2b2a35699
commit 4e2ee86627
2 changed files with 1 additions and 2 deletions

View File

@ -95,7 +95,6 @@ class OSMWidget(BaseGeometryWidget):
class Media: class Media:
js = ( js = (
'http://openlayers.org/api/2.13.1/OpenLayers.js', 'http://openlayers.org/api/2.13.1/OpenLayers.js',
'http://www.openstreetmap.org/openlayers/OpenStreetMap.js',
'gis/js/OLMapWidget.js', 'gis/js/OLMapWidget.js',
) )

View File

@ -13,5 +13,5 @@ options['scale_text'] = true;
options['mouse_position'] = true; options['mouse_position'] = true;
options['default_lon'] = {{ default_lon|unlocalize }}; options['default_lon'] = {{ default_lon|unlocalize }};
options['default_lat'] = {{ default_lat|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 %} {% endblock %}