--- steps/step-2/index.html 2025-11-04 20:55:43.217987455 +0000
+++ steps/step-3/index.html 2025-11-04 20:55:41.297975413 +0000
@@ -7,14 +7,26 @@
* leaflet-providers
-->
<head>
- <title>Simplify tile layer setup</title>
+ <title>Make the map use the full window</title>
<meta charset="utf-8" />
<script src="../../node_modules/leaflet/dist/leaflet.js"></script>
<link rel="stylesheet" href="../../node_modules/leaflet/dist/leaflet.css"/>
<script src="../../node_modules/leaflet-providers/leaflet-providers.js"></script>
+ <style>
+ body {
+ margin: 0;
+ padding: 0;
+ }
+ #mapDiv {
+ position: absolute;
+ top: 0;
+ bottom: 0;
+ width: 100%;
+ }
+ </style>
</head>
<body>
- <div id='mapDiv' style='width: 800px; height: 600px'></div>
+ <div id='mapDiv'></div>
<script>
var latLon = [53.56250, 9.95982];
var zoom = 18;