Difference between revisions of "Range Layers"
Jump to navigation
Jump to search
Line 38: | Line 38: | ||
function forEachFeature(feature, layer) { | function forEachFeature(feature, layer) { | ||
− | var popupContent = "<p>Species: "+ feature.properties.binomial + | + | var fillColor, |
+ | subspecies = feature.properties.subspecies; | ||
+ | if ( subspecies = "ellioti" ) fillColor = "#006837"; | ||
+ | else if ( subspecies = "schweinfurthii" ) fillColor = "#31a354"; | ||
+ | else if ( subspecies = "troglodytes" ) fillColor = "#78c679"; | ||
+ | else if ( subspecies = "verus" ) fillColor = "#c2e699"; | ||
+ | else fillColor = "#f7f7f7"; // no data | ||
+ | return { color: "#999", weight: 1, fillColor: fillColor, fillOpacity: .6 }; | ||
+ | |||
+ | var popupContent = "<p><b>Species: </b>"+ feature.properties.binomial + | ||
"</br>Subspecies: "+ feature.properties.subspecies +'</p>'; | "</br>Subspecies: "+ feature.properties.subspecies +'</p>'; | ||
layer.bindPopup(popupContent); | layer.bindPopup(popupContent); |
Revision as of 11:49, 25 February 2022
Avaiable Layers:
Ape range Download: Geographic shapefile (ZIP; 171 kB)]
Refugia after Maley 1996 Download: Geographic shapefile (ZIP; 85 kB)]