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><b>Species: </b>"+ feature.properties.binomial + | var popupContent = "<p><b>Species: </b>"+ feature.properties.binomial + | ||
"</br>Subspecies: "+ feature.properties.subspecies +'</p>'; | "</br>Subspecies: "+ feature.properties.subspecies +'</p>'; | ||
Line 63: | Line 54: | ||
} | } | ||
function style2(feature) { | function style2(feature) { | ||
− | + | 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 }; | |
} | } | ||
Revision as of 11:53, 25 February 2022
Avaiable Layers:
Ape range Download: Geographic shapefile (ZIP; 171 kB)]
Refugia after Maley 1996 Download: Geographic shapefile (ZIP; 85 kB)]