added setTimeout
Browse files
main.py
CHANGED
@@ -16,7 +16,7 @@ function load()
|
|
16 |
attribution: '© <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: '© <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 |
)
|