Skip to content

Commit

Permalink
use mapbox new api
Browse files Browse the repository at this point in the history
  • Loading branch information
markusmo committed Nov 13, 2020
1 parent e1d8479 commit 9714f7e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmsplugin_cascade/leaflet/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ def set_defaults(config):
config.setdefault('leaflet', {})
config['leaflet'].setdefault('tilesURL', 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png'),
config['leaflet'].setdefault('default_position', {'lat': 30.0, 'lng': -40.0, 'zoom': 3})
config['leaflet'].setdefault('id', 'mapbox.streets'),
config['leaflet'].setdefault('id', 'mapbox/streets-v11'),
config['leaflet'].setdefault('maxZoom', 18),
config['leaflet'].setdefault('tileSize', 512)
config['leaflet'].setdefault('zoomOffset', -1)
config['leaflet'].setdefault('detectRetina', True)
config['leaflet'].setdefault('attribution', mark_safe('Map data &copy; <a href="http://openstreetmap.org">OpenStreetMap</a>')),

0 comments on commit 9714f7e

Please sign in to comment.