-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathproprietary.html
23 lines (23 loc) · 1.29 KB
/
proprietary.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!DOCTYPE html>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" href="../dist/lib/leaflet.css" />
<script src="../dist/lib/leaflet.js"></script>
<script src="../src/controls/StaticLayerSwitcher.js"></script>
<script src="../src/controls/Leaflet.Search.js"></script>
<script src="../src/layers/LayerList.js"></script>
<script src="../src/layers/Bing.js"></script>
<script src="../src/layers/Esri.js"></script>
<script src="../src/layers/Google.js"></script>
<script src="../src/layers/Yandex.js"></script>
<script src="../src/layers/2GIS.js"></script>
<script src="../src/layers/Nokia.js"></script>
<style>html, body, #map { margin: 0; height: 100%; }</style>
<div id="map"></div>
<div style="position: absolute; background: white; left: 10px; bottom: 10px; width: 400px; z-index: 9999;">This example tests StaticLayerSwitcher, LayerList id resolution, all proprietary layers, search control</div>
<script>
L.DomEvent.on(window, 'load', function() {
var map = L.map('map').setView([59.9, 30.3], 13);
map.addControl(L.control.search());
map.addControl(L.staticLayerSwitcher(['Zverik\'s|MapBox:zverik.map-p0ooyt47', 'National Geographic', 'Google Roads', 'Google Hybrid', 'Yandex Map', 'Yandex People\'s Map', '2GIS', 'Nokia Map:key1:key2'], { maxLayers: 15 }));
});
</script>