Use standard tile coords
This commit is contained in:
@@ -21,7 +21,7 @@ const map = new Map({
|
||||
tileUrlFunction: function(tileCoord) {
|
||||
return urlTemplate.replace('{z}', (tileCoord[0] - 1).toString())
|
||||
.replace('{x}', tileCoord[1].toString())
|
||||
.replace('{y}', (-tileCoord[2] - 1).toString());
|
||||
.replace('{y}', tileCoord[2].toString());
|
||||
},
|
||||
wrapX: true
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user