Difference between revisions of "Test"
Jump to navigation
Jump to search
Line 19: | Line 19: | ||
var url = 'REFUGIA_MALEY96.geojson'; // my GeoJSON data source, in same folder as my html page. | var url = 'REFUGIA_MALEY96.geojson'; // my GeoJSON data source, in same folder as my html page. | ||
− | var map = L.map('map').setView([ | + | var map = L.map('map').setView([10, 5], 4); |
var topo=new L.tileLayer('http://{s}.tile.opentopomap.org/{z}/{x}/{y}.png',{ | 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); | attribution: '© <a href="http://osm.org/copyright">OpenTopoMap</a> contributors'}).addTo(map); | ||
− | |||
− | |||
function style(feature) { | function style(feature) { | ||
Line 36: | Line 34: | ||
}; | }; | ||
} | } | ||
− | |||
var bbTeam = L.geoJSON(null, {onEachFeature: forEachFeature, style: style}); | var bbTeam = L.geoJSON(null, {onEachFeature: forEachFeature, style: style}); | ||
Revision as of 09:25, 25 February 2022