Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
tools:rat-map [2022/03/23 13:48] juraschektools:rat-map [2022/03/23 14:43] (current) juraschek
Line 5: Line 5:
  <label for="file-input" id="file-input-label">Choose CSV File</label>  <label for="file-input" id="file-input-label">Choose CSV File</label>
  <input type="file" id="file-input" accept="text/csv" />  <input type="file" id="file-input" accept="text/csv" />
-  <div id="mapdiv"></div>+  <div id="mapdiv" style="width:800px; height:300px;"></div>
 <script src="/lib/scripts/OpenLayers.js"></script> <script src="/lib/scripts/OpenLayers.js"></script>
   <script>   <script>
Line 47: Line 47:
  
      //   map = new OpenLayers.Map("mapdiv");      //   map = new OpenLayers.Map("mapdiv");
-     //map.addLayer(new OpenLayers.Layer.OSM());+     map.addLayer(new OpenLayers.Layer.OSM());
      map.addLayer(new OpenLayers.Layer.OSM("Wikimedia",      map.addLayer(new OpenLayers.Layer.OSM("Wikimedia",
        ["https://maps.wikimedia.org/osm-intl/${z}/${x}/${y}.png"],        ["https://maps.wikimedia.org/osm-intl/${z}/${x}/${y}.png"],