Difference between revisions of "African great ape layers"
Jump to navigation
Jump to search
Line 19: | Line 19: | ||
<div id="map" style="width: 100%; height: 500px;"></div> | <div id="map" style="width: 100%; height: 500px;"></div> | ||
+ | <script> | ||
+ | |||
+ | // Create map | ||
+ | var map = L.map('map').setView([-0, 6], 4); | ||
+ | |||
+ | // Create open maps | ||
+ | var osm=new L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png',{attribution: '© <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'}).addTo(map); | ||
+ | var topo=new L.tileLayer('http://{s}.tile.opentopomap.org/{z}/{x}/{y}.png',{attribution: '© <a href="http://osm.org/copyright">OpenTopoMap</a> contributors'}).addTo(map); | ||
+ | |||
+ | // for Layer Control | ||
+ | var baseMaps = { | ||
+ | "Open Street Map": osm, | ||
+ | "Open Topo Map": topo, | ||
+ | }; | ||
+ | |||
+ | |||
+ | </script> | ||
</body> | </body> | ||
</html> | </html> | ||
− | |||
Revision as of 02:10, 15 June 2022
Spatial Layers > African great ape layers