Difference between revisions of "Range layers"

From A.P.E.S. wiki
Jump to navigation Jump to search
Line 25: Line 25:
 
     var hyloagilis = 'files/gibbon/Hylobates_agilis.geojson';
 
     var hyloagilis = 'files/gibbon/Hylobates_agilis.geojson';
 
     var hyloalbibaris = 'files/gibbon/Hylobates_albibarbis.geojson';
 
     var hyloalbibaris = 'files/gibbon/Hylobates_albibarbis.geojson';
 +
    var hylofunereus = 'files/gibbon/Hylobates_funereus.geojson';
 +
    var hylolar = 'files/gibbon/Hylobates_lar.geojson';
 +
    var hylolarcarp = 'files/gibbon/Hylobates_lar_ssp_carpenteri.geojson';
 
       var Nomascus_hainanus = 'files/gibbon/Nomascus_hainanus.geojson';
 
       var Nomascus_hainanus = 'files/gibbon/Nomascus_hainanus.geojson';
  
Line 44: Line 47:
 
     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 stylehyloalbibaris(feature) { return { fillColor: '#CE6C0C', fillOpacity: 0.7,  weight: 2, opacity: 0.7, color: '#CE6C0C', dashArray: '3' }; }
 +
    function stylehylofunereus(feature) { return { fillColor: '#EEA215', fillOpacity: 0.7,  weight: 2, opacity: 0.7, color: '#EEA215', dashArray: '3' }; }
 +
    function stylehylolar(feature) { return { fillColor: '#EEC315', fillOpacity: 0.7,  weight: 2, opacity: 0.7, color: '#EEC315', dashArray: '3' }; }
 +
    function stylehylolarcarp(feature) { return { fillColor: '#EBEE15', fillOpacity: 0.7,  weight: 2, opacity: 0.7, color: '#EBEE15', 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 53: Line 59:
 
     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 hyloalbibarisLayer = L.geoJson(null, {onEachFeature: forEachFeature,style: stylehyloalbibaris});    
 +
    var hylofunereusLayer = L.geoJson(null, {onEachFeature: forEachFeature,style: stylehylofunereus});  
 +
    var hylolarLayer = L.geoJson(null, {onEachFeature: forEachFeature,style: stylehylolar});  
 +
    var hylolarcarpLayer = L.geoJson(null, {onEachFeature: forEachFeature,style: stylehylolarcarp});  
 
       var Nomascus_hainanusLayer = L.geoJson(null, {onEachFeature: forEachFeature, style: styleNomascus_hainanus});
 
       var Nomascus_hainanusLayer = L.geoJson(null, {onEachFeature: forEachFeature, style: styleNomascus_hainanus});
  
Line 61: Line 70:
 
     $.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(hyloalbibaris, function(data) { hyloalbibarisLayer.addData(data);}); hyloalbibarisLayer.addTo(map);  
 +
    $.getJSON(hylolarcarp, function(data) { hylolarcarpLayer.addData(data);}); hylolarcarpLayer.addTo(map);
 +
    $.getJSON(hylolar, function(data) { hylolarLayer.addData(data);}); hylolarLayer.addTo(map);
 +
    $.getJSON(hylofunereus, function(data) { hylofunereusLayer.addData(data);}); hylofunereusLayer.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 76: Line 88:
 
       "Hylobates agilis": hyloagilisLayer,
 
       "Hylobates agilis": hyloagilisLayer,
 
       "Hylobates albibarbis": hyloalbibarisLayer,
 
       "Hylobates albibarbis": hyloalbibarisLayer,
 +
      "Hylobates funereus": hylofunereusLayer,
 +
      "Hylobates lar": hylolarLayer,
 +
      "Hylobates lar carpenteri": hylolarcarpLayer,
 
         "Nomascus hainanus range": Nomascus_hainanusLayer,
 
         "Nomascus hainanus range": Nomascus_hainanusLayer,
 
       };                    
 
       };                    

Revision as of 10:48, 7 March 2022


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