Naomi 2018-11-04 14:25:03 +00:00
parent 59e68ae771
commit 4c28ed5e3b

View File

@ -263,6 +263,18 @@ CRISPY_TEMPLATE_PACK = 'bootstrap3'
LEAFLET_CONFIG = { LEAFLET_CONFIG = {
'MIN_ZOOM': 2, 'MIN_ZOOM': 2,
'MAX_ZOOM': 16, 'MAX_ZOOM': 16,
'TILES': [
('Default', 'https://{s}.tile.opentopomap.org/{z}/{x}/{y}.png', {
'maxZoom': 17,
'attribution': 'Map data: &copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>, <a href="http://viewfinderpanoramas.org">SRTM</a> | Map style: &copy; <a href="https://opentopomap.org">OpenTopoMap</a> (<a href="https://creativecommons.org/licenses/by-sa/3.0/">CC-BY-SA</a>)'
}),
('English', 'https://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}{r}.png', {
'attribution': '&copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a> &copy; <a href="https://carto.com/attributions">CARTO</a>',
'subdomains': 'abcd',
'maxZoom': 19
}),
('Français', 'http://a.tile.openstreetmap.fr/osmfr/{z}/{x}/{y}.png', {}),
],
'PLUGINS': { 'PLUGINS': {
'forms': { 'forms': {
'auto-include': True 'auto-include': True