Difference between revisions of "Range Layers"

From A.P.E.S. wiki
Jump to navigation Jump to search
Line 38: Line 38:
  
 
       function forEachFeature(feature, layer) {
 
       function forEachFeature(feature, layer) {
      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 +
 
         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) {
         return {
+
      var fillColor,
          fillColor: 'blue',
+
            subspecies = feature.properties.subspecies;
          fillOpacity: 0.5,  
+
        if ( subspecies == "ellioti" ) fillColor = "#006837";
          weight: 2,
+
        else if ( subspecies == "schweinfurthii" ) fillColor = "#31a354";
          opacity: 1,
+
         else if ( subspecies == "troglodytes" ) fillColor = "#78c679";
          color: '#ffffff',
+
        else if ( subspecies == "verus" ) fillColor = "#c2e699";
          dashArray: '3'
+
        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)]