add base layer to permalink
This commit is contained in:
parent
aa1e051cfd
commit
88e4c164c2
1 changed files with 2 additions and 2 deletions
|
|
@ -60,7 +60,7 @@
|
|||
+ 'routing + map data © <a target="_blank" href="http://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors '
|
||||
+ '(<a target="_blank" href="http://opendatacommons.org/licenses/odbl/">ODbL</a>)');
|
||||
|
||||
L.control.layers({
|
||||
var layersControl = L.control.layers({
|
||||
'OpenStreetMap': osm,
|
||||
'OpenStreetMap.de': osmde,
|
||||
'OpenTopoMap': topo,
|
||||
|
|
@ -71,7 +71,7 @@
|
|||
'Hiking (Waymarked Trails)': hiking
|
||||
}).addTo(map);
|
||||
|
||||
map.addControl(new L.Control.Permalink({text: 'Permalink', position: 'bottomright'})); //, layers: layersControl
|
||||
map.addControl(new L.Control.Permalink({text: 'Permalink', position: 'bottomright', layers: layersControl}));
|
||||
map.addControl(new BR.Search());
|
||||
|
||||
return map;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue