fix height
Browse files
main.py
CHANGED
|
@@ -4,7 +4,7 @@ app = FastHTML()
|
|
| 4 |
rt = app.route
|
| 5 |
|
| 6 |
style="""
|
| 7 |
-
#mapid { height:
|
| 8 |
"""
|
| 9 |
|
| 10 |
js = """
|
|
@@ -15,9 +15,9 @@ function load()
|
|
| 15 |
maxZoom: 19,
|
| 16 |
attribution: '© <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>'
|
| 17 |
}).addTo(map);
|
| 18 |
-
alert('loading...');
|
| 19 |
}
|
| 20 |
-
setTimeout(load,
|
| 21 |
"""
|
| 22 |
|
| 23 |
@rt('/')
|
|
|
|
| 4 |
rt = app.route
|
| 5 |
|
| 6 |
style="""
|
| 7 |
+
#mapid { height: 480px; }
|
| 8 |
"""
|
| 9 |
|
| 10 |
js = """
|
|
|
|
| 15 |
maxZoom: 19,
|
| 16 |
attribution: '© <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>'
|
| 17 |
}).addTo(map);
|
| 18 |
+
//alert('loading...');
|
| 19 |
}
|
| 20 |
+
setTimeout(load, 1000);
|
| 21 |
"""
|
| 22 |
|
| 23 |
@rt('/')
|