Visual polishing
This commit is contained in:
@@ -6,6 +6,7 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<link rel="icon" type="image/x-icon" href="../assets/favicon.png" />
|
<link rel="icon" type="image/x-icon" href="../assets/favicon.png" />
|
||||||
<link rel="stylesheet" href="../assets/pyscript.css" />
|
<link rel="stylesheet" href="../assets/pyscript.css" />
|
||||||
|
<link rel="stylesheet" href="style.css" />
|
||||||
<script defer src="../assets/pyscript.js"></script>
|
<script defer src="../assets/pyscript.js"></script>
|
||||||
<title>PLZ-Karte Deutschland</title>
|
<title>PLZ-Karte Deutschland</title>
|
||||||
<!-- prettier-ignore -->
|
<!-- prettier-ignore -->
|
||||||
@@ -14,7 +15,7 @@
|
|||||||
</py-env>
|
</py-env>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="folium" style="width: 100%; height: 100%"></div>
|
<div id="folium"></div>
|
||||||
<py-script output="folium" src="script.py"></py-script>
|
<py-script output="folium" src="script.py"></py-script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
BIN
map/map.png
BIN
map/map.png
Binary file not shown.
|
Before Width: | Height: | Size: 1.8 MiB After Width: | Height: | Size: 2.8 MiB |
@@ -18,7 +18,7 @@ def style(x):
|
|||||||
|
|
||||||
# geo_json = json.loads(gpd.read_file("./plz-1stellig.shp", dtype={"plz": str}).to_json())
|
# geo_json = json.loads(gpd.read_file("./plz-1stellig.shp", dtype={"plz": str}).to_json())
|
||||||
geo_json = json.loads(open_url("./plz-2stellig.geojson").read())
|
geo_json = json.loads(open_url("./plz-2stellig.geojson").read())
|
||||||
m = folium.Map(location=[50.4, 9.6], zoom_start=6)
|
m = folium.Map(height=937, width=1920, location=[51.16, 10.45], zoom_start=6)
|
||||||
folium.GeoJson(
|
folium.GeoJson(
|
||||||
geo_json,
|
geo_json,
|
||||||
name="Postleitzahl",
|
name="Postleitzahl",
|
||||||
|
|||||||
9
map/style.css
Normal file
9
map/style.css
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
body {
|
||||||
|
width: 100vw;
|
||||||
|
height: 100vh;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
#folium {
|
||||||
|
width: 100vw;
|
||||||
|
height: 100vh;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user