File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 : '© <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
You can’t perform that action at this time.
0 commit comments