Difference between revisions of "Range layers"
Jump to navigation
Jump to search
Line 104: | Line 104: | ||
// GEOJSON FILES | // GEOJSON FILES | ||
var hoolockhoolock = 'files/Hoolock_hoolock.geojson'; | var hoolockhoolock = 'files/Hoolock_hoolock.geojson'; | ||
− | + | ||
var map = L.map('map').setView([10, 110], 4); | var map = L.map('map').setView([10, 110], 4); | ||
Line 128: | Line 128: | ||
} | } | ||
− | + | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
// 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}); | ||
− | + | ||
$.getJSON(hoolockhoolock, function(data) { hoolockhoolockLayer.addData(data);}); | $.getJSON(hoolockhoolock, function(data) { hoolockhoolockLayer.addData(data);}); | ||
hoolockhoolockLayer.addTo(map); | hoolockhoolockLayer.addTo(map); | ||
− | |||
− | |||
// for Layer Control | // for Layer Control | ||
Line 158: | Line 146: | ||
var overlayMaps = { | var overlayMaps = { | ||
"Hoolock hoolock range": hoolockhoolockLayer, | "Hoolock hoolock range": hoolockhoolockLayer, | ||
− | + | ||
}; | }; | ||
Revision as of 05:33, 6 March 2022
Species | Shapefile | GeoJSON | Source |
---|---|---|---|
Hoolock hoolock | Hoolock hoolock shapefile (ZIP; 110 kB)] |
Test