Visual polishing

This commit is contained in:
2022-08-31 05:36:14 +02:00
parent 1a4b1f0f22
commit fff45d8308
4 changed files with 12 additions and 2 deletions

View File

@@ -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>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 MiB

After

Width:  |  Height:  |  Size: 2.8 MiB

View File

@@ -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
View File

@@ -0,0 +1,9 @@
body {
width: 100vw;
height: 100vh;
overflow: hidden;
}
#folium {
width: 100vw;
height: 100vh;
}