Difference between revisions of "Test"

From A.P.E.S. wiki
Jump to navigation Jump to search
Line 24: Line 24:
 
var map = L.map('map').setView([47.7541, -107.05078], 3);  
 
var map = L.map('map').setView([47.7541, -107.05078], 3);  
  
var osm=new L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png',{  
+
var osm=new L.tileLayer('http://{s}.tile.opentopomap.org/{z}/{x}/{y}.png',{  
 
attribution: '&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'}).addTo(map);
 
attribution: '&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'}).addTo(map);
+
var top=new L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png',{
 +
attribution: '&copy; <a href="http://osm.org/copyright">OpenTopoMap</a> contributors'}).addTo(map);
 +
 
 
 
// Set style function that sets fill color property
 
// Set style function that sets fill color property
Line 76: Line 78:
 
var baseMaps = {
 
var baseMaps = {
 
     "Open Street Map": osm 
 
     "Open Street Map": osm 
 +
    "Open Topo Map": top 
 
};
 
};
  

Revision as of 16:24, 23 February 2022