Difference between revisions of "Orangutan layers"

From A.P.E.S. wiki
Jump to navigation Jump to search
Line 25: Line 25:
  
 
       // Create open maps  
 
       // Create open maps  
 +
      var topo=new L.tileLayer('http://{s}.tile.opentopomap.org/{z}/{x}/{y}.png',{attribution: '&copy; <a href="http://osm.org/copyright">OpenTopoMap</a> contributors'}).addTo(map);
 
       var osm=new L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png',{attribution: '&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'}).addTo(map);
 
       var osm=new L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png',{attribution: '&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'}).addTo(map);
      var topo=new L.tileLayer('http://{s}.tile.opentopomap.org/{z}/{x}/{y}.png',{attribution: '&copy; <a href="http://osm.org/copyright">OpenTopoMap</a> contributors'}).addTo(map);
 
 
   
 
   
 
       // POPUP -> this "feature.properties.xxxx" needs to be matching the file please look it up in the file  
 
       // POPUP -> this "feature.properties.xxxx" needs to be matching the file please look it up in the file  
Line 35: Line 35:
  
 
       // Null variable that will hold layer
 
       // Null variable that will hold layer
       var orangutan2Layer = L.geoJson(null, {onEachFeature: forEachFeature, style: styleorangutan2});
+
       var orangutan2Layer = L.geoJson(null, {style: styleorangutan2});
  
 
       $.getJSON(orangutan2, function(data) { orangutan2Layer.addData(data);}); orangutan2Layer.addTo(map);
 
       $.getJSON(orangutan2, function(data) { orangutan2Layer.addData(data);}); orangutan2Layer.addTo(map);

Revision as of 11:08, 7 March 2022


Download available layers. Source: IUCN
Species Shapefile GeoJSON