malteos commited on
Commit
46481c8
1 Parent(s): d714cc7

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +6 -2
index.html CHANGED
@@ -25,7 +25,10 @@ document.addEventListener('DOMContentLoaded', function() {
25
  //sample data values for populate map
26
  var _data = [];
27
 
28
- var map = new L.Map('map', {zoom: 9, center: new L.latLng(data[0].loc) }); //set center from first location
 
 
 
29
 
30
  // map.addLayer(new L.TileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png')); //base layer
31
 
@@ -118,7 +121,8 @@ document.addEventListener('DOMContentLoaded', function() {
118
  </div>
119
 
120
  <div id="legendContainer"></div>
121
- <div id="map"></div>
 
122
 
123
  <script src="./papers.js"></script>
124
  <script src="https://unpkg.com/leaflet@1.3.0/dist/leaflet.js"></script>
 
25
  //sample data values for populate map
26
  var _data = [];
27
 
28
+ var map = new L.Map('map', {
29
+ zoom: 6,
30
+ center: new L.latLng([5, 5]) // data[0].loc
31
+ }); //set center from first location
32
 
33
  // map.addLayer(new L.TileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png')); //base layer
34
 
 
121
  </div>
122
 
123
  <div id="legendContainer"></div>
124
+ <div id="map">
125
+ </div>
126
 
127
  <script src="./papers.js"></script>
128
  <script src="https://unpkg.com/leaflet@1.3.0/dist/leaflet.js"></script>