Skip to content

Commit 00b36ba

Browse files
authored
Fixed bounds
1 parent 0615dc9 commit 00b36ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

javascript/gw2map.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ continentsPromise.then(function(continents) {
4040
code: 'ZOOMIFY',
4141
units: 'pixels',
4242
// extent: [0, 0, continents.get(0).dimensions.get(0), continents.get(0).dimensions.get(1)],
43-
extent: [0, 0, 32768, 32768],
43+
extent: [0, 0, 49152, 49152],
4444
})
4545
const projectionExtent = projection.getExtent()
4646
const maxResolution = ol.extent.getWidth(projectionExtent) / tileSize
@@ -51,7 +51,7 @@ continentsPromise.then(function(continents) {
5151
overlays: [overlay],
5252
view: new ol.View({
5353
projection: projection,
54-
center: [16384, 16384],
54+
center: [24576, 24576],
5555
zoom: 3,
5656
minZoom: continents.getIn([0, 'min_zoom']),
5757
maxZoom: continents.getIn([0, 'max_zoom']),

0 commit comments

Comments
 (0)