add German style
This commit is contained in:
parent
09e27599f9
commit
ba437260f1
1 changed files with 9 additions and 1 deletions
10
js/index.js
10
js/index.js
|
|
@ -7,9 +7,16 @@
|
|||
(function() {
|
||||
|
||||
function initMap() {
|
||||
var osmAttribution = '© <a target="_blank" href="http://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors';
|
||||
|
||||
var osm = L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
|
||||
maxZoom: 19,
|
||||
attribution: 'tiles © <a target="_blank" href="http://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'
|
||||
attribution: 'tiles ' + osmAttribution
|
||||
});
|
||||
|
||||
var osmde = L.tileLayer('http://{s}.tile.openstreetmap.de/tiles/osmde/{z}/{x}/{y}.png', {
|
||||
maxZoom: 19,
|
||||
attribution: 'tiles by <a target="_blank" href="http://openstreetmap.de/karte.html">openstreetmap.de</a> ' + osmAttribution
|
||||
});
|
||||
|
||||
var topo = L.tileLayer('http://{s}.tile.opentopomap.org/{z}/{x}/{y}.png', {
|
||||
|
|
@ -42,6 +49,7 @@
|
|||
|
||||
L.control.layers({
|
||||
'OpenStreetMap': osm,
|
||||
'OpenStreetMap.de': osmde,
|
||||
'OpenTopoMap': topo,
|
||||
'OpenCycleMap': cycle,
|
||||
'Outdoors': outdoors
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue