Difference between revisions of "Range test"
Jump to navigation
Jump to search
Line 20: | Line 20: | ||
// GEOJSON FILES | // GEOJSON FILES | ||
var hoolockhoolock = 'files/gibbon/Hoolock_hoolock.geojson'; | var hoolockhoolock = 'files/gibbon/Hoolock_hoolock.geojson'; | ||
+ | // var hoolockleuconedys = 'files/gibbon/Hoolock_leuconedys.geojson'; | ||
var map = L.map('map').setView([10, 110], 4); | var map = L.map('map').setView([10, 110], 4); | ||
Line 57: | Line 58: | ||
// Null variable that will hold layer | // Null variable that will hold layer | ||
var hoolockhoolockLayer = L.geoJson(null, {onEachFeature: forEachFeature, style: stylehoolockhoolock}); | var hoolockhoolockLayer = L.geoJson(null, {onEachFeature: forEachFeature, style: stylehoolockhoolock}); | ||
− | var hoolockleuconedysLayer = L.geoJson(null, {onEachFeature: forEachFeature, style: stylehoolockleuconedys}); | + | // var hoolockleuconedysLayer = L.geoJson(null, {onEachFeature: forEachFeature, style: stylehoolockleuconedys}); |
+ | |||
+ | $.getJSON(hoolockhoolock, function(data) { hoolockhoolockLayer.addData(data);}); | ||
+ | hoolockhoolockLayer.addTo(map); | ||
+ | |||
+ | // $.getJSON(hoolockleuconedys, function(data) { hoolockleuconedysLayer.addData(data);}); | ||
+ | // hoolockleuconedysLayer.addTo(map); | ||
// for Layer Control | // for Layer Control | ||
Line 65: | Line 72: | ||
}; | }; | ||
+ | var overlayMaps = { | ||
+ | "Hoolock hoolock range": hoolockhoolockLayer, | ||
+ | // "Hoolock leuconedys range" : holoockleuconedysLayer | ||
+ | }; | ||
+ | |||
+ | //Add layer control | ||
+ | L.control.layers(baseMaps, overlayMaps).addTo(map); | ||
</script> | </script> | ||
</body> | </body> | ||
</html> | </html> | ||
+ | |||
+ | |||
+ | {|border="1" cellpadding="5" cellspacing="0" <!-- align="right" --> class="gibbon_ranges" !style="background-color:#ccffcc;" | ||
+ | |+'''Download available layers''' | ||
+ | !Species | ||
+ | !Shapefile | ||
+ | !GeoJSON | ||
+ | !Source | ||
+ | |- | ||
+ | |Hoolock hoolock | ||
+ | |[https://iucnapesportal.org/wiki/files/Hoolock_hoolock.zip ''Hoolock hoolock shapefile''] (ZIP; 110 kB)] | ||
+ | | | ||
+ | | | ||
+ | |} |
Revision as of 09:34, 7 March 2022
Species | Shapefile | GeoJSON | Source |
---|---|---|---|
Hoolock hoolock | Hoolock hoolock shapefile (ZIP; 110 kB)] |