Difference between revisions of "Range layers"
Jump to navigation
Jump to search
Line 28: | Line 28: | ||
var hylolar = 'files/gibbon/Hylobates_lar.geojson'; | var hylolar = 'files/gibbon/Hylobates_lar.geojson'; | ||
var hylolarcarp = 'files/gibbon/Hylobates_lar_ssp_carpenteri.geojson'; | var hylolarcarp = 'files/gibbon/Hylobates_lar_ssp_carpenteri.geojson'; | ||
+ | var hylolarvest = 'files/gibbon/Hylobates_lar_ssp_vestitus.geojson'; | ||
+ | var hylomoloch = 'files/gibbon/Hylobates_moloch.geojson'; | ||
+ | var hylomuell = 'files/gibbon/Hylobates_muelleri.geojson'; | ||
+ | var hylopileatus = 'files/gibbon/Hylobates_pileatus.geojson'; | ||
var Nomascus_hainanus = 'files/gibbon/Nomascus_hainanus.geojson'; | var Nomascus_hainanus = 'files/gibbon/Nomascus_hainanus.geojson'; | ||
Line 50: | Line 54: | ||
function stylehylolar(feature) { return { fillColor: '#EEC315', fillOpacity: 0.7, weight: 2, opacity: 0.7, color: '#EEC315', dashArray: '3' }; } | function stylehylolar(feature) { return { fillColor: '#EEC315', fillOpacity: 0.7, weight: 2, opacity: 0.7, color: '#EEC315', dashArray: '3' }; } | ||
function stylehylolarcarp(feature) { return { fillColor: '#EBEE15', fillOpacity: 0.7, weight: 2, opacity: 0.7, color: '#EBEE15', dashArray: '3' }; } | function stylehylolarcarp(feature) { return { fillColor: '#EBEE15', fillOpacity: 0.7, weight: 2, opacity: 0.7, color: '#EBEE15', dashArray: '3' }; } | ||
+ | function stylehylolarvest(feature) { return { fillColor: '#CCCE4A', fillOpacity: 0.7, weight: 2, opacity: 0.7, color: '#CCCE4A', dashArray: '3' }; } | ||
+ | function stylehylomoloch(feature) { return { fillColor: '#ADC60F', fillOpacity: 0.7, weight: 2, opacity: 0.7, color: '#ADC60F', 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 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 62: | Line 70: | ||
var hylolarLayer = L.geoJson(null, {onEachFeature: forEachFeature,style: stylehylolar}); | var hylolarLayer = L.geoJson(null, {onEachFeature: forEachFeature,style: stylehylolar}); | ||
var hylolarcarpLayer = L.geoJson(null, {onEachFeature: forEachFeature,style: stylehylolarcarp}); | var hylolarcarpLayer = L.geoJson(null, {onEachFeature: forEachFeature,style: stylehylolarcarp}); | ||
+ | var hylolarvestLayer = L.geoJson(null, {onEachFeature: forEachFeature,style: stylehylolarvest}); | ||
+ | var hylomolochLayer = L.geoJson(null, {onEachFeature: forEachFeature,style: stylehylomoloch}); | ||
+ | var hylomuellLayer = L.geoJson(null, {onEachFeature: forEachFeature,style: stylehylomuell}); | ||
+ | var hylopileatusLayer = L.geoJson(null, {onEachFeature: forEachFeature,style: stylehylopileatus}); | ||
var Nomascus_hainanusLayer = L.geoJson(null, {onEachFeature: forEachFeature, style: styleNomascus_hainanus}); | var Nomascus_hainanusLayer = L.geoJson(null, {onEachFeature: forEachFeature, style: styleNomascus_hainanus}); | ||
Line 73: | Line 85: | ||
$.getJSON(hylolar, function(data) { hylolarLayer.addData(data);}); hylolarLayer.addTo(map); | $.getJSON(hylolar, function(data) { hylolarLayer.addData(data);}); hylolarLayer.addTo(map); | ||
$.getJSON(hylofunereus, function(data) { hylofunereusLayer.addData(data);}); hylofunereusLayer.addTo(map); | $.getJSON(hylofunereus, function(data) { hylofunereusLayer.addData(data);}); hylofunereusLayer.addTo(map); | ||
+ | $.getJSON(hylopileatus, function(data) { hylopileatusLayer.addData(data);}); hylopileatusLayer.addTo(map); | ||
+ | $.getJSON(hylomuell, function(data) { hylomuellLayer.addData(data);}); hylomuellLayer.addTo(map); | ||
+ | $.getJSON(hylomoloch, function(data) { hylomolochLayer.addData(data);}); hylomolochLayer.addTo(map); | ||
+ | $.getJSON(hylolarvest, function(data) { hylolarvestLayer.addData(data);}); hylolarvestLayer.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 91: | Line 107: | ||
"Hylobates lar": hylolarLayer, | "Hylobates lar": hylolarLayer, | ||
"Hylobates lar carpenteri": hylolarcarpLayer, | "Hylobates lar carpenteri": hylolarcarpLayer, | ||
+ | "Hylobates lar vestitus": hylolarvestLayer, | ||
+ | "Hylobates moloch": hylomolochLayer, | ||
+ | "Hylobates muelleri": hylomuellLayer, | ||
+ | "Hylobates pileatus": hylopileatusLayer, | ||
"Nomascus hainanus range": Nomascus_hainanusLayer, | "Nomascus hainanus range": Nomascus_hainanusLayer, | ||
}; | }; |
Revision as of 10:50, 7 March 2022
Species | Shapefile | GeoJSON | Source |
---|---|---|---|
Hoolock hoolock | Hoolock hoolock shapefile (ZIP; 110 kB)] |