Difference between revisions of "Test"

From A.P.E.S. wiki
Jump to navigation Jump to search
Line 25: Line 25:
 
             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);
  
  // load GeoJSON from an external file
+
    L.geoJson(usa.geojson).addTo(map);
  $.getJSON("usa.geojson",function(data){
 
    // add GeoJSON layer to the map once the file is loaded
 
    L.geoJson(data).addTo(map);
 
  });
 
 
 
 
 
 
   
 
   
 
     </script>  
 
     </script>  
 
   </body>
 
   </body>
 
</html>
 
</html>

Revision as of 08:51, 25 February 2022