Add body
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/leaflet@1.4.0/dist/leaflet.css"),
|
| 26 |
Style(style),
|
| 27 |
Script(src="https://unpkg.com/leaflet@1.4.0/dist/leaflet.js"),
|
| 28 |
-
Div(id='mapid'),
|
| 29 |
Script(js)
|
| 30 |
)
|
| 31 |
|
|
|
|
| 16 |
attribution: '© <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/leaflet@1.4.0/dist/leaflet.css"),
|
| 26 |
Style(style),
|
| 27 |
Script(src="https://unpkg.com/leaflet@1.4.0/dist/leaflet.js"),
|
| 28 |
+
Body(onload='load()', Div(id='mapid')),
|
| 29 |
Script(js)
|
| 30 |
)
|
| 31 |
|