Fixed #26569 -- Updated OSM Mapnik constructor
This commit is contained in:
parent
f2b2a35699
commit
4e2ee86627
|
@ -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',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -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 %}
|
||||||
|
|
Loading…
Reference in New Issue