Difference between revisions of "Test"

From A.P.E.S. wiki
Jump to navigation Jump to search
(Blanked the page)
Tag: Blanking
 
(53 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<html>
 
  <head>
 
    <link rel="stylesheet" href="https://unpkg.com/leaflet@1.0.3/dist/leaflet.css" />
 
    <script src="https://unpkg.com/leaflet@1.0.3/dist/leaflet.js"></script>
 
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script>
 
    <style>
 
      #map {
 
        height: 500px;
 
        width: 100%;
 
        max-width: 100%;
 
        max-height: 100%;
 
      }
 
    </style>
 
  </head>
 
  <body>
 
    <div id="map" style="width: 100%; height: 500px;"></div>
 
   
 
    <script>
 
  
  // initialize the map
 
  var map = L.map('map').setView([42.35, -71.08], 3);
 
 
  // load a tile layer
 
  L.tileLayer('http://{s}.tile.opentopomap.org/{z}/{x}/{y}.png',{
 
            attribution: '&copy; <a href="http://osm.org/copyright">OpenTopoMap</a> contributors'}).addTo(map);
 
 
  // load GeoJSON from an external file
 
  $.getJSON("usa.geojson",function(data){
 
    // add GeoJSON layer to the map once the file is loaded
 
    L.geoJson(data).addTo(map);
 
  });
 
 
 
 
    </script>
 
  </body>
 
</html>
 

Latest revision as of 05:51, 29 September 2022