Difference between revisions of "Test"
Jump to navigation
Jump to search
Line 22: | Line 22: | ||
var url2 = 'files/species_15933.geojson'; // my GeoJSON data source, in same folder as my html page. | var url2 = 'files/species_15933.geojson'; // my GeoJSON data source, in same folder as my html page. | ||
− | var map = L.map('map').setView([ | + | var map = L.map('map').setView([10, 7], 5); |
− | var topo=new L.tileLayer('http://{s}.tile.opentopomap.org/{z}/{x}/{y}.png',{ | + | 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); |
− | + | 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 osm=new L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png',{ | ||
− | |||
Line 50: | Line 48: | ||
dashArray: '3' | dashArray: '3' | ||
}; | }; | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
} | } | ||
Line 88: | Line 73: | ||
var overlayMaps = { | var overlayMaps = { | ||
− | " | + | "Refugia":stateLayer, |
− | " | + | "Ape range":stateLayer2, |
}; | }; | ||
Revision as of 11:12, 25 February 2022