Difference between revisions of "Orangutan layers"
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: '© <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: '© <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: '© <a href="http://osm.org/copyright">OpenStreetMap</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, { | + | 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 10:08, 7 March 2022
Species | Shapefile | GeoJSON |
---|