Skip to content

Commit

Permalink
fix(2D:VectorTiles): Tile Grid en 512px
Browse files Browse the repository at this point in the history
  • Loading branch information
elias75015 committed Apr 4, 2024
1 parent 2f2eb31 commit 16e7bd5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
2 changes: 2 additions & 0 deletions DRAFT_CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@

* [Fixed]

- corrige tileGrid Vector Tile (512px)

* [Deprecated]

* [Security]
24 changes: 12 additions & 12 deletions src/OpenLayers/OlMapVectorTile.js
Original file line number Diff line number Diff line change
Expand Up @@ -1221,12 +1221,12 @@ OlMap.prototype._addMapBoxLayer = function (layerObj) {
// overlaps
// projection
format : vectorFormat,
tileGrid : olCreateXYZTileGrid({ // TODO scheme tms ?
extent : _glSource.bounds, // [minx, miny, maxx, maxy]
maxZoom : _glSource.maxzoom || 22,
minZoom : _glSource.minzoom || 1,
tileSize : _glSource.tileSize || 256
}),
// tileGrid : olCreateXYZTileGrid({ // TODO scheme tms ?
// extent : _glSource.bounds, // [minx, miny, maxx, maxy]
// maxZoom : _glSource.maxzoom || 22,
// minZoom : _glSource.minzoom || 1,
// tileSize : _glSource.tileSize || 256
// }),
urls : _glTiles
});
vectorSource._title = _title;
Expand Down Expand Up @@ -1311,12 +1311,12 @@ OlMap.prototype._addMapBoxLayer = function (layerObj) {
// INFO
// on supprime la grille pour forcer l'utilisation par defaut des tuiles en 512
// sur du vecteur tuilé
tileGrid : olCreateXYZTileGrid({ // TODO scheme tms ?
extent : _glSource.bounds, // [minx, miny, maxx, maxy]
maxZoom : _glSource.maxzoom || 22,
minZoom : _glSource.minzoom || 1,
tileSize : _glSource.tileSize || 256
}),
// tileGrid : olCreateXYZTileGrid({ // TODO scheme tms ?
// extent : _glSource.bounds, // [minx, miny, maxx, maxy]
// maxZoom : _glSource.maxzoom || 22,
// minZoom : _glSource.minzoom || 1,
// tileSize : _glSource.tileSize || 256
// }),
urls : tiles
});
vectorSource._title = _title;
Expand Down

0 comments on commit 16e7bd5

Please # to comment.