Difference between revisions of "Range layers"

From A.P.E.S. wiki
Jump to navigation Jump to search
Line 24: Line 24:
 
       var hyloabbotti = 'files/gibbon/Hylobates_abbotti.geojson';
 
       var hyloabbotti = 'files/gibbon/Hylobates_abbotti.geojson';
 
     var hyloagilis = 'files/gibbon/Hylobates_agilis.geojson';
 
     var hyloagilis = 'files/gibbon/Hylobates_agilis.geojson';
 +
    var hyloalbibaris = 'files/gibbon/Hylobates_albibarbis.geojson';
 
       var Nomascus_hainanus = 'files/gibbon/Nomascus_hainanus.geojson';
 
       var Nomascus_hainanus = 'files/gibbon/Nomascus_hainanus.geojson';
  
Line 42: Line 43:
 
       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 stylehyloagilis(feature) { return { fillColor: '#CA833D', fillOpacity: 0.7,  weight: 2, opacity: 0.7, color: '#CA833D', dashArray: '3' }; }
 +
    function stylehyloalbibaris(feature) { return { fillColor: '#CE6C0C', fillOpacity: 0.7,  weight: 2, opacity: 0.7, color: '#CE6C0C', 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 50: Line 52:
 
       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 hyloagilisLayer = L.geoJson(null, {onEachFeature: forEachFeature,style: stylehyloagilis});    
 +
    var hyloalbibarisLayer = L.geoJson(null, {onEachFeature: forEachFeature,style: stylehyloalbibaris});  
 
       var Nomascus_hainanusLayer = L.geoJson(null, {onEachFeature: forEachFeature, style: styleNomascus_hainanus});
 
       var Nomascus_hainanusLayer = L.geoJson(null, {onEachFeature: forEachFeature, style: styleNomascus_hainanus});
  
Line 57: Line 60:
 
       $.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(hyloagilis, function(data) { hyloagilisLayer.addData(data);}); hyloagilisLayer.addTo(map);  
 +
    $.getJSON(hyloalbibaris, function(data) { hyloalbibarisLayer.addData(data);}); hyloalbibarisLayer.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 71: Line 75:
 
         "Hylobates abbotti": hyloabbottiLayer,
 
         "Hylobates abbotti": hyloabbottiLayer,
 
       "Hylobates agilis": hyloagilisLayer,
 
       "Hylobates agilis": hyloagilisLayer,
 +
      "Hylobates albibarbis": hyloalbibarisLayer,
 
         "Nomascus hainanus range": Nomascus_hainanusLayer,
 
         "Nomascus hainanus range": Nomascus_hainanusLayer,
 
       };                    
 
       };                    

Revision as of 10:45, 7 March 2022


Download available layers
Species Shapefile GeoJSON Source
Hoolock hoolock Hoolock hoolock shapefile (ZIP; 110 kB)]