Difference between revisions of "Range layers"

From A.P.E.S. wiki
Jump to navigation Jump to search
Line 33: Line 33:
 
     var hylopileatus = 'files/gibbon/Hylobates_pileatus.geojson';
 
     var hylopileatus = 'files/gibbon/Hylobates_pileatus.geojson';
 
     var hyloklosii = 'files/gibbon/Hylobates_klossii.geojson';
 
     var hyloklosii = 'files/gibbon/Hylobates_klossii.geojson';
      var Nomascus_hainanus = 'files/gibbon/Nomascus_hainanus.geojson';
+
    var nomasannamensis = 'files/gibbon/Nomascus_annamensis.geojson';
 +
    var nomasconcolor = 'files/gibbon/Nomascus_concolor.geojson';
 +
    var nomasgabriellae = 'files/gibbon/Nomascus_gabriellae.geojson';
 +
    var nomashainanus = 'files/gibbon/Nomascus_hainanus.geojson';
 +
    var nomasleuco = 'files/gibbon/Nomascus_leucogenys.geojson';
 +
    var nomasnasutus = 'files/gibbon/Nomascus_nasutus.geojson';
 +
    var nomassiki = 'files/gibbon/Nomascus_siki.geojson';
 +
    var symphasyndact = 'files/gibbon/Symphalangus_syndactylus.geojson';
  
 
       // Create map  
 
       // Create map  
Line 60: Line 67:
 
     function stylehylopileatus(feature) { return { fillColor: '#7FDC14', fillOpacity: 0.7,  weight: 2, opacity: 0.7, color: '#7FDC14', dashArray: '3' }; }
 
     function stylehylopileatus(feature) { return { fillColor: '#7FDC14', fillOpacity: 0.7,  weight: 2, opacity: 0.7, color: '#7FDC14', dashArray: '3' }; }
 
     function styleshyloklosii(feature) { return { fillColor: '#EF1E6A', fillOpacity: 0.7,  weight: 2, opacity: 0.7, color: '#EF1E6A', dashArray: '3' }; }  
 
     function styleshyloklosii(feature) { return { fillColor: '#EF1E6A', fillOpacity: 0.7,  weight: 2, opacity: 0.7, color: '#EF1E6A', dashArray: '3' }; }  
      function styleNomascus_hainanus(feature) {return { fillColor: 'blue',fillOpacity: 0.7,weight: 2,opacity: 0.7,color: 'blue',dashArray: '3', }; }
+
    function stylenomasannamensis(feature) { return { fillColor: '#4BDD0F', fillOpacity: 0.7, weight: 2, opacity: 0.7, color: '#4BDD0F', dashArray: '3' }; }
 +
    function stylenomasconcolor(feature) { return { fillColor: '#0B8D1A', fillOpacity: 0.7, weight: 2, opacity: 0.7, color: '#0B8D1A', dashArray: '3' }; }
 +
    function stylenomasgabriellae(feature) { return { fillColor: '#0FD29F', fillOpacity: 0.7,  weight: 2, opacity: 0.7, color: '#0FD29F', dashArray: '3' }; }
 +
    function stylenomashainanus(feature) { return { fillColor: '#0ECFB9', fillOpacity: 0.7,  weight: 2, opacity: 0.7, color: '#0ECFB9', dashArray: '3' }; }
 +
    function stylenomasleuco(feature) { return { fillColor: '#0CD1EA', fillOpacity: 0.7,  weight: 2, opacity: 0.7, color: '#0CD1EA', dashArray: '3' }; }
 +
    function stylenomasnasutus(feature) { return { fillColor: '#0995D4', fillOpacity: 0.7,  weight: 2, opacity: 0.7, color: '#0995D4', dashArray: '3' }; }  
 +
    function stylenomassiki(feature) { return { fillColor: '#127BD6', fillOpacity: 0.7,  weight: 2, opacity: 0.7, color: '#127BD6', dashArray: '3' }; }
 +
    function stylesymphasyndact(feature) { return { fillColor: '#6740C6', fillOpacity: 0.7,  weight: 2, opacity: 0.7, color: '#6740C6', dashArray: '3' }; }
  
 
       // Null variable that will hold layer
 
       // Null variable that will hold layer
Line 77: Line 91:
 
     var hylopileatusLayer = L.geoJson(null, {onEachFeature: forEachFeature,style: stylehylopileatus});    
 
     var hylopileatusLayer = L.geoJson(null, {onEachFeature: forEachFeature,style: stylehylopileatus});    
 
     var hyloklosiiLayer = L.geoJson(null, {onEachFeature: forEachFeature,style: styleshyloklosii});
 
     var hyloklosiiLayer = L.geoJson(null, {onEachFeature: forEachFeature,style: styleshyloklosii});
      var Nomascus_hainanusLayer = L.geoJson(null, {onEachFeature: forEachFeature, style: styleNomascus_hainanus});
+
    var nomasannamensisLayer = L.geoJson(null, {onEachFeature: forEachFeature,style: stylenomasannamensis});
 +
    var nomasconcolorLayer = L.geoJson(null, {onEachFeature: forEachFeature,style: stylenomasconcolor});
 +
    var nomasgabriellaeLayer = L.geoJson(null, {onEachFeature: forEachFeature,style: stylenomasgabriellae});
 +
    var nomashainanusLayer = L.geoJson(null, {onEachFeature: forEachFeature,style: stylenomashainanus});
 +
    var nomasleucoLayer = L.geoJson(null, {onEachFeature: forEachFeature,style: stylenomasleuco});
 +
    var nomasnasutusLayer = L.geoJson(null, {onEachFeature: forEachFeature,style: stylenomasnasutus});
 +
    var nomassikiLayer = L.geoJson(null, {onEachFeature: forEachFeature,style: stylenomassiki});
 +
    var symphasyndactLayer = L.geoJson(null, {onEachFeature: forEachFeature,style: stylesymphasyndact});
  
 
       $.getJSON(hoolockhoolock, function(data) { hoolockhoolockLayer.addData(data);}); hoolockhoolockLayer.addTo(map);
 
       $.getJSON(hoolockhoolock, function(data) { hoolockhoolockLayer.addData(data);}); hoolockhoolockLayer.addTo(map);
Line 93: Line 114:
 
     $.getJSON(hylolarvest, function(data) { hylolarvestLayer.addData(data);}); hylolarvestLayer.addTo(map);  
 
     $.getJSON(hylolarvest, function(data) { hylolarvestLayer.addData(data);}); hylolarvestLayer.addTo(map);  
 
     $.getJSON(hyloklosii, function(data) { hyloklosiiLayer.addData(data);}); hyloklosiiLayer.addTo(map);  
 
     $.getJSON(hyloklosii, function(data) { hyloklosiiLayer.addData(data);}); hyloklosiiLayer.addTo(map);  
      $.getJSON(Nomascus_hainanus, function(data) { Nomascus_hainanusLayer.addData(data);});   Nomascus_hainanusLayer.addTo(map);
+
    $.getJSON(symphasyndact, function(data) { symphasyndactLayer.addData(data);}); symphasyndactLayer.addTo(map);
 +
    $.getJSON(nomassiki, function(data) { nomassikiLayer.addData(data);}); nomassikiLayer.addTo(map);
 +
    $.getJSON(nomasnasutus, function(data) { nomasnasutusLayer.addData(data);}); nomasnasutusLayer.addTo(map);
 +
    $.getJSON(nomasleuco, function(data) { nomasleucoLayer.addData(data);}); nomasleucoLayer.addTo(map);
 +
    $.getJSON(nomashainanus, function(data) { nomashainanusLayer.addData(data);}); nomashainanusLayer.addTo(map);
 +
    $.getJSON(nomasgabriellae, function(data) { nomasgabriellaeLayer.addData(data);}); nomasgabriellaeLayer.addTo(map);
 +
    $.getJSON(nomasconcolor, function(data) { nomasconcolorLayer.addData(data);}); nomasconcolorLayer.addTo(map);
 +
    $.getJSON(nomasannamensis, function(data) { nomasannamensisLayer.addData(data);}); nomasannamensisLayer.addTo(map);  
  
 
       // for Layer Control
 
       // for Layer Control
Line 116: Line 144:
 
       "Hylobates pileatus": hylopileatusLayer,
 
       "Hylobates pileatus": hylopileatusLayer,
 
       "Hylobates klosii": hyloklosiiLayer,
 
       "Hylobates klosii": hyloklosiiLayer,
        "Nomascus hainanus range": Nomascus_hainanusLayer,
+
      "Nomascus annamensis": nomasannamensisLayer,
 +
      "Nomascus concolor": nomasconcolorLayer,
 +
      "Nomascus gabriellae": nomasgabriellaeLayer,
 +
      "Nomascus hainanus": nomashainanusLayer,
 +
      "Nomascus leucogenys": nomasleucoLayer,
 +
      "Nomascus nasutus": nomasnasutusLayer,
 +
      "Nomascus siki": nomassikiLayer,
 +
      "Symphalangus syndactylus": symphasyndactLayer,
 
       };                    
 
       };                    
  

Revision as of 11:00, 7 March 2022


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