Difference between revisions of "Range layers"
Jump to navigation
Jump to search
Line 22: | Line 22: | ||
var hoolockleuconedys = 'files/gibbon/Hoolock_leuconedys.geojson'; | var hoolockleuconedys = 'files/gibbon/Hoolock_leuconedys.geojson'; | ||
var hoolocktianxing = 'files/gibbon/Hoolock_tianxing.geojson'; | var hoolocktianxing = 'files/gibbon/Hoolock_tianxing.geojson'; | ||
+ | var hyloabbotti = 'files/gibbon/Hylobates_abbotti.geojson'; | ||
+ | var hyloagilis = 'files/gibbon/Hylobates_agilis.geojson'; | ||
var Nomascus_hainanus = 'files/gibbon/Nomascus_hainanus.geojson'; | var Nomascus_hainanus = 'files/gibbon/Nomascus_hainanus.geojson'; | ||
− | |||
// Create map | // Create map | ||
Line 40: | Line 41: | ||
function stylehoolocktianxing(feature) { return { fillColor: '#B65757', fillOpacity: 0.7, weight: 2, opacity: 0.7, color: '#B65757', dashArray: '3' }; } | function stylehoolocktianxing(feature) { return { fillColor: '#B65757', fillOpacity: 0.7, weight: 2, opacity: 0.7, color: '#B65757', dashArray: '3' }; } | ||
function stylehyloabbotti(feature) { return { fillColor: '#F87446', fillOpacity: 0.7, weight: 2, opacity: 0.7, color: '#F87446', dashArray: '3' }; } | function stylehyloabbotti(feature) { return { fillColor: '#F87446', fillOpacity: 0.7, weight: 2, opacity: 0.7, color: '#F87446', dashArray: '3' }; } | ||
+ | function stylehyloagilis(feature) { return { fillColor: '#CA833D', fillOpacity: 0.7, weight: 2, opacity: 0.7, color: '#CA833D', 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 47: | Line 49: | ||
var hoolocktianxingLayer = L.geoJson(null, {onEachFeature: forEachFeature,style: stylehoolocktianxing}); | var hoolocktianxingLayer = L.geoJson(null, {onEachFeature: forEachFeature,style: stylehoolocktianxing}); | ||
var hyloabbottiLayer = L.geoJson(null, {onEachFeature: forEachFeature,style: stylehyloabbotti}); | var hyloabbottiLayer = L.geoJson(null, {onEachFeature: forEachFeature,style: stylehyloabbotti}); | ||
+ | var hyloagilisLayer = L.geoJson(null, {onEachFeature: forEachFeature,style: stylehyloagilis}); | ||
var Nomascus_hainanusLayer = L.geoJson(null, {onEachFeature: forEachFeature, style: styleNomascus_hainanus}); | var Nomascus_hainanusLayer = L.geoJson(null, {onEachFeature: forEachFeature, style: styleNomascus_hainanus}); | ||
Line 53: | Line 56: | ||
$.getJSON(hoolocktianxing, function(data) { hoolocktianxingLayer.addData(data);}); hoolocktianxingLayer.addTo(map); | $.getJSON(hoolocktianxing, function(data) { hoolocktianxingLayer.addData(data);}); hoolocktianxingLayer.addTo(map); | ||
$.getJSON(hyloabbotti, function(data) { hyloabbottiLayer.addData(data);}); hyloabbottiLayer.addTo(map); | $.getJSON(hyloabbotti, function(data) { hyloabbottiLayer.addData(data);}); hyloabbottiLayer.addTo(map); | ||
+ | $.getJSON(hyloagilis, function(data) { hyloagilisLayer.addData(data);}); hyloagilisLayer.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 66: | Line 70: | ||
"Hoolock tianxing": hoolocktianxingLayer, | "Hoolock tianxing": hoolocktianxingLayer, | ||
"Hylobates abbotti": hyloabbottiLayer, | "Hylobates abbotti": hyloabbottiLayer, | ||
+ | "Hylobates agilis": hyloagilisLayer, | ||
"Nomascus hainanus range": Nomascus_hainanusLayer, | "Nomascus hainanus range": Nomascus_hainanusLayer, | ||
}; | }; |
Revision as of 10:44, 7 March 2022
Species | Shapefile | GeoJSON | Source |
---|---|---|---|
Hoolock hoolock | Hoolock hoolock shapefile (ZIP; 110 kB)] |