Skip to content

Commit

Permalink
fix(ol:Layers): VectorTile Grid à 512px
Browse files Browse the repository at this point in the history
  • Loading branch information
elias75015 committed Apr 4, 2024
1 parent 77c6eb1 commit c16006e
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 14 deletions.
4 changes: 4 additions & 0 deletions DRAFT_CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
* [Fixed]

- widget itineraire utilise ressource bdtopo-valhalla dans le cas d'un itinéraire pieton en mode fastest (6675d287eb028170dea5d0dbdae2acaed51359ca)
- tilegrid par défaut (512px) pour vecteur tuilé sur layerImport

* [Security]

Expand Down Expand Up @@ -68,6 +69,9 @@

* [Fixed]

- corrige couche json itowns, mauvaise urlO


* [Security]

---
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ <h2>Ajout d'un contrôle de gestion des couches : LayerSwitcher</h2>
/* global itowns,document,GuiTools*/
const positionOnGlobe = {
coord: new itowns.Coordinates('EPSG:4326', 2.3465, 48.88, 0),
zoom: 10,
zoom: 15,
tilt: 45,
heading: 0
};
Expand Down
2 changes: 1 addition & 1 deletion samples-src/resources/itowns/layers.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ var layerOrtho = {
"id": "Ortho",
"source" : {
"protocol": "wmts",
"url": "https://data.geopf/wmts",
"url": "https://data.geopf.fr/wmts",
"crs" : "EPSG:3857",
"updateStrategy": {
"type": "0",
Expand Down
24 changes: 12 additions & 12 deletions src/OpenLayers/Controls/LayerImport.js
Original file line number Diff line number Diff line change
Expand Up @@ -1229,12 +1229,12 @@ var LayerImport = (function (Control) {
format : vectorFormat,
// INFO
// surcharge : grille en 256 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 : _glTiles
});
vectorSource._title = _title;
Expand Down Expand Up @@ -1296,12 +1296,12 @@ var LayerImport = (function (Control) {
format : vectorFormat,
// INFO
// surcharge : grille en 256 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 c16006e

Please sign in to comment.