Difference between revisions of "Test"

From A.P.E.S. wiki
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([47.7541, -107.05078], 3);  
+
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: '&copy; <a href="http://osm.org/copyright">OpenTopoMap</a> contributors'}).addTo(map);
 
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);
 
  
 
         function style(feature) {
 
         function style(feature) {
Line 36: Line 34:
 
     };
 
     };
 
}
 
}
var url = 'BaseBallFinal.json';
 
 
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