Skip to content

Commit 84de0be

Browse files
committed
デモ最適化
1 parent 643c9a2 commit 84de0be

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

index.html

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -214,24 +214,25 @@ <h2>🗺️ Cache Statistics</h2>
214214
// Register map with Weiwudi
215215
weiwudiMap = await Weiwudi.registerMap('osm_demo', {
216216
type: 'wmts',
217-
minLat: 35.0,
218-
maxLat: 36.0,
219-
minLng: 139.0,
220-
maxLng: 140.0,
221-
minZoom: 10,
222-
maxZoom: 18,
217+
minLat: 35.63,
218+
maxLat: 35.73,
219+
minLng: 139.71,
220+
maxLng: 139.81,
221+
minZoom: 14,
222+
maxZoom: 17,
223223
url: 'https://tile.openstreetmap.org/{z}/{x}/{y}.png'
224224
});
225225

226226
document.getElementById('sw-status').textContent = 'Active';
227227

228228
// Initialize Leaflet map
229-
map = L.map('map').setView([35.68, 139.76], 13); // Tokyo
229+
map = L.map('map').setView([35.68, 139.76], 14); // Tokyo
230230

231231
// Add tile layer using Weiwudi cached URL
232232
L.tileLayer(weiwudiMap.url, {
233233
attribution: '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors',
234-
maxZoom: 18
234+
minZoom: 14,
235+
maxZoom: 17
235236
}).addTo(map);
236237

237238
// Enable buttons

0 commit comments

Comments
 (0)