debisoft commited on
Commit
a4b8532
·
1 Parent(s): 3a5876b
Files changed (1) hide show
  1. main.py +2 -2
main.py CHANGED
@@ -16,7 +16,7 @@ function load()
16
  attribution: '&copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>'
17
  }).addTo(map);
18
  }
19
- window.onload = load;
20
  """
21
 
22
  @rt('/')
@@ -25,7 +25,7 @@ def get():
25
  Link(rel="stylesheet", href="https://unpkg.com/[email protected]/dist/leaflet.css"),
26
  Style(style),
27
  Script(src="https://unpkg.com/[email protected]/dist/leaflet.js"),
28
- Div(id='mapid'),
29
  Script(js)
30
  )
31
 
 
16
  attribution: '&copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>'
17
  }).addTo(map);
18
  }
19
+
20
  """
21
 
22
  @rt('/')
 
25
  Link(rel="stylesheet", href="https://unpkg.com/[email protected]/dist/leaflet.css"),
26
  Style(style),
27
  Script(src="https://unpkg.com/[email protected]/dist/leaflet.js"),
28
+ Body(onload='load()', Div(id='mapid')),
29
  Script(js)
30
  )
31