From c16006ef1de0d10794541db90d0f6fbadb1b501c Mon Sep 17 00:00:00 2001 From: elias couppe Date: Thu, 4 Apr 2024 11:40:13 +0200 Subject: [PATCH] =?UTF-8?q?fix(ol:Layers):=20VectorTile=20Grid=20=C3=A0=20?= =?UTF-8?q?512px?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DRAFT_CHANGELOG.md | 4 ++++ ...-itowns-layerswitcher-bundle-gpLayers.html | 2 +- samples-src/resources/itowns/layers.js | 2 +- src/OpenLayers/Controls/LayerImport.js | 24 +++++++++---------- 4 files changed, 18 insertions(+), 14 deletions(-) diff --git a/DRAFT_CHANGELOG.md b/DRAFT_CHANGELOG.md index 1103b840a..7d9e3c241 100644 --- a/DRAFT_CHANGELOG.md +++ b/DRAFT_CHANGELOG.md @@ -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] @@ -68,6 +69,9 @@ * [Fixed] + - corrige couche json itowns, mauvaise urlO + + * [Security] --- diff --git a/samples-src/pages/itowns/LayerSwitcher/pages-itowns-layerswitcher-bundle-gpLayers.html b/samples-src/pages/itowns/LayerSwitcher/pages-itowns-layerswitcher-bundle-gpLayers.html index 476873271..4a5c93ac3 100644 --- a/samples-src/pages/itowns/LayerSwitcher/pages-itowns-layerswitcher-bundle-gpLayers.html +++ b/samples-src/pages/itowns/LayerSwitcher/pages-itowns-layerswitcher-bundle-gpLayers.html @@ -40,7 +40,7 @@

Ajout d'un contrôle de gestion des couches : LayerSwitcher

/* 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 }; diff --git a/samples-src/resources/itowns/layers.js b/samples-src/resources/itowns/layers.js index 029c47b36..cfbf8fd32 100644 --- a/samples-src/resources/itowns/layers.js +++ b/samples-src/resources/itowns/layers.js @@ -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", diff --git a/src/OpenLayers/Controls/LayerImport.js b/src/OpenLayers/Controls/LayerImport.js index 9e01cec2a..40c84ac8c 100644 --- a/src/OpenLayers/Controls/LayerImport.js +++ b/src/OpenLayers/Controls/LayerImport.js @@ -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; @@ -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;