Difference between revisions of "Range layers"
Jump to navigation
Jump to search
Line 32: | Line 32: | ||
var hylomuell = 'files/gibbon/Hylobates_muelleri.geojson'; | var hylomuell = 'files/gibbon/Hylobates_muelleri.geojson'; | ||
var hylopileatus = 'files/gibbon/Hylobates_pileatus.geojson'; | var hylopileatus = 'files/gibbon/Hylobates_pileatus.geojson'; | ||
+ | var hyloklosii = 'files/gibbon/Hylobates_klossii.geojson'; | ||
var Nomascus_hainanus = 'files/gibbon/Nomascus_hainanus.geojson'; | var Nomascus_hainanus = 'files/gibbon/Nomascus_hainanus.geojson'; | ||
Line 58: | Line 59: | ||
function stylehylomuell(feature) { return { fillColor: '#92C60F', fillOpacity: 0.7, weight: 2, opacity: 0.7, color: '#92C60F', dashArray: '3' }; } | function stylehylomuell(feature) { return { fillColor: '#92C60F', fillOpacity: 0.7, weight: 2, opacity: 0.7, color: '#92C60F', dashArray: '3' }; } | ||
function stylehylopileatus(feature) { return { fillColor: '#7FDC14', fillOpacity: 0.7, weight: 2, opacity: 0.7, color: '#7FDC14', dashArray: '3' }; } | function stylehylopileatus(feature) { return { fillColor: '#7FDC14', fillOpacity: 0.7, weight: 2, opacity: 0.7, color: '#7FDC14', dashArray: '3' }; } | ||
+ | function styleshyloklosii(feature) { return { fillColor: '#EF1E6A', fillOpacity: 0.7, weight: 2, opacity: 0.7, color: '#EF1E6A', dashArray: '3' }; } | ||
function styleNomascus_hainanus(feature) {return { fillColor: 'blue',fillOpacity: 0.7,weight: 2,opacity: 0.7,color: 'blue',dashArray: '3', }; } | function styleNomascus_hainanus(feature) {return { fillColor: 'blue',fillOpacity: 0.7,weight: 2,opacity: 0.7,color: 'blue',dashArray: '3', }; } | ||
Line 74: | Line 76: | ||
var hylomuellLayer = L.geoJson(null, {onEachFeature: forEachFeature,style: stylehylomuell}); | var hylomuellLayer = L.geoJson(null, {onEachFeature: forEachFeature,style: stylehylomuell}); | ||
var hylopileatusLayer = L.geoJson(null, {onEachFeature: forEachFeature,style: stylehylopileatus}); | var hylopileatusLayer = L.geoJson(null, {onEachFeature: forEachFeature,style: stylehylopileatus}); | ||
+ | var hyloklosiiLayer = L.geoJson(null, {onEachFeature: forEachFeature,style: stylehyloklosii}); | ||
var Nomascus_hainanusLayer = L.geoJson(null, {onEachFeature: forEachFeature, style: styleNomascus_hainanus}); | var Nomascus_hainanusLayer = L.geoJson(null, {onEachFeature: forEachFeature, style: styleNomascus_hainanus}); | ||
Line 89: | Line 92: | ||
$.getJSON(hylomoloch, function(data) { hylomolochLayer.addData(data);}); hylomolochLayer.addTo(map); | $.getJSON(hylomoloch, function(data) { hylomolochLayer.addData(data);}); hylomolochLayer.addTo(map); | ||
$.getJSON(hylolarvest, function(data) { hylolarvestLayer.addData(data);}); hylolarvestLayer.addTo(map); | $.getJSON(hylolarvest, function(data) { hylolarvestLayer.addData(data);}); hylolarvestLayer.addTo(map); | ||
+ | $.getJSON(hyloklosii, function(data) { hyloklosiiLayer.addData(data);}); hyloklosiiLayer.addTo(map); | ||
$.getJSON(Nomascus_hainanus, function(data) { Nomascus_hainanusLayer.addData(data);}); Nomascus_hainanusLayer.addTo(map); | $.getJSON(Nomascus_hainanus, function(data) { Nomascus_hainanusLayer.addData(data);}); Nomascus_hainanusLayer.addTo(map); | ||
Line 111: | Line 115: | ||
"Hylobates muelleri": hylomuellLayer, | "Hylobates muelleri": hylomuellLayer, | ||
"Hylobates pileatus": hylopileatusLayer, | "Hylobates pileatus": hylopileatusLayer, | ||
+ | "Hylobates klosii": hyloklosiiLayer, | ||
"Nomascus hainanus range": Nomascus_hainanusLayer, | "Nomascus hainanus range": Nomascus_hainanusLayer, | ||
}; | }; |
Revision as of 10:52, 7 March 2022
Species | Shapefile | GeoJSON | Source |
---|---|---|---|
Hoolock hoolock | Hoolock hoolock shapefile (ZIP; 110 kB)] |