main.py
CHANGED
@@ -18,9 +18,10 @@ style="""
|
|
18 |
"""
|
19 |
|
20 |
js = """
|
|
|
21 |
function load()
|
22 |
{
|
23 |
-
|
24 |
L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', {
|
25 |
maxZoom: 19,
|
26 |
attribution: '© <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>'
|
|
|
18 |
"""
|
19 |
|
20 |
js = """
|
21 |
+
let map = null;
|
22 |
function load()
|
23 |
{
|
24 |
+
map = L.map('mapid').setView([ 37.5158, 127.0991], 13);
|
25 |
L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', {
|
26 |
maxZoom: 19,
|
27 |
attribution: '© <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>'
|