debisoft commited on
Commit
82da301
·
1 Parent(s): 5c059ce

added setTimeout

Browse files
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
-
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
- Body(onload='load()'),
29
  Div(id='mapid'),
30
  Script(js)
31
  )
 
16
  attribution: '&copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>'
17
  }).addTo(map);
18
  }
19
+ setTimeout(load, 5000);
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()'),
29
  Div(id='mapid'),
30
  Script(js)
31
  )