Difference between revisions of "Range layers"

From A.P.E.S. wiki
Jump to navigation Jump to search
Line 104: Line 104:
 
       // GEOJSON FILES  
 
       // GEOJSON FILES  
 
       var hoolockhoolock = 'files/Hoolock_hoolock.geojson';  
 
       var hoolockhoolock = 'files/Hoolock_hoolock.geojson';  
      var hoolockleuconedys = 'files/Hoolock_leuconedys.geojson';
+
 
 
   
 
   
 
var map = L.map('map').setView([10, 110], 4);  
 
var map = L.map('map').setView([10, 110], 4);  
Line 128: Line 128:
 
       }
 
       }
 
   
 
   
function stylehoolockleuconedys(feature) {
+
 
        return {
 
          fillColor: 'green',
 
          fillOpacity: 0.7, 
 
          weight: 2,
 
          opacity: 0.7,
 
          color: 'green',
 
          dashArray: '3'
 
        };
 
      }
 
   
 
 
   // Null variable that will hold layer
 
   // Null variable that will hold layer
  
 
var hoolockhoolockLayer = L.geoJson(null, {onEachFeature: forEachFeature, style: stylehoolockhoolock});
 
var hoolockhoolockLayer = L.geoJson(null, {onEachFeature: forEachFeature, style: stylehoolockhoolock});
var hoolockleuconedysLayer = L.geoJson(null, {onEachFeature: forEachFeature, style: stylehoolockleuconedys});
+
 
  
 
$.getJSON(hoolockhoolock, function(data) { hoolockhoolockLayer.addData(data);});
 
$.getJSON(hoolockhoolock, function(data) { hoolockhoolockLayer.addData(data);});
 
       hoolockhoolockLayer.addTo(map);
 
       hoolockhoolockLayer.addTo(map);
  
$.getJSON(hoolockleuconedys, function(data) { hoolockleuconedysLayer.addData(data);});
 
      hoolockleuconedysLayer.addTo(map);
 
  
 
       // for Layer Control
 
       // for Layer Control
Line 158: Line 146:
 
       var overlayMaps = {
 
       var overlayMaps = {
 
       "Hoolock hoolock range": hoolockhoolockLayer,
 
       "Hoolock hoolock range": hoolockhoolockLayer,
      "Hoolock leuconedys" : hoolockleuconedysLayer,
+
 
 
       };
 
       };
 
   
 
   

Revision as of 05:33, 6 March 2022


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


Test