-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsettings.py
38 lines (36 loc) · 1.81 KB
/
settings.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
INSTALLED_APPS = [
'leaflet',
'djgeojson',
]
# leaflet config
LEAFLET_CONFIG = {
'TILES': [('Streets', 'https://api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?access_token=pk.eyJ1IjoibWFwYm94IiwiYSI6ImNpejY4NXVycTA2emYycXBndHRqcmZ3N3gifQ.rJcFIG214AriISLbB6B5aw',
{'attribution': '© <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>',
'id': 'mapbox.streets',
'minZoom': 9,
'maxZoom': 12,
}
),
('OSM B&W', 'http://{s}.www.toolserver.org/tiles/bw-mapnik/{z}/{x}/{y}.png',
{'attribution': '© <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>',
'minZoom': 9,
'maxZoom': 12,
}
),
('OSM', 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
{'attribution': '© <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>',
'minZoom': 9,
'maxZoom': 12,
}),
('OpenTopoMap', 'http://{s}.tile.opentopomap.org/{z}/{x}/{y}.png',
{'attribution': 'Data: © <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, Display: © <a href="http://opentopomap.org">OpenTopoMap</a> <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>',
'minZoom': 9,
'maxZoom': 12,
})
],
'DEFAULT_CENTER': (51.834167, 12.237778),
'DEFAULT_ZOOM': 10,
'RESET_VIEW': False,
'NO_GLOBALS': False,
#'SRID': 4326
}