Skip to content

Commit 9521db5

Browse files
center map
1 parent 4958176 commit 9521db5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

index.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,11 @@ <h1>globe.c</h1>
9797
</div>
9898
<div id="map" style="width: 1000px; height: 625px"></div>
9999
<script>
100-
const map = L.map("map").setView([0, 0], 2);
100+
const map = L.map("map").setView([30, 0], 2);
101101
const tiles = L.tileLayer("{z}/{x}/{y}.png", {
102-
minZoom: 1,
102+
minZoom: 2,
103103
maxNativeZoom: 2,
104-
maxZoom: 7,
104+
maxZoom: 8,
105105
attribution: "NOAA GLOBE elevation dataset",
106106
}).addTo(map);
107107
</script>

0 commit comments

Comments
 (0)