From c5d449241135deb32d034b3ef5936369cd38bdf4 Mon Sep 17 00:00:00 2001 From: alvaroCodes Date: Mon, 18 Nov 2024 13:08:17 +0100 Subject: [PATCH 1/2] develop: hibrido layergroup backgroundlayers --- api-ign-js/src/configuration.js | 3 +-- api-ign-js/src/facade/js/mapea.js | 36 +++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+), 2 deletions(-) diff --git a/api-ign-js/src/configuration.js b/api-ign-js/src/configuration.js index b91e21030..4ddc09a58 100644 --- a/api-ign-js/src/configuration.js +++ b/api-ign-js/src/configuration.js @@ -22,8 +22,7 @@ const backgroundlayersOpts = [{ id: 'hibrido', title: 'Híbrido', layers: [ - 'QUICK*BASE_PNOA_MA_TMS', - 'QUICK*BASE_IGNBaseOrto_TMS', + 'QUICK*HIBRIDO', ], }, ]; diff --git a/api-ign-js/src/facade/js/mapea.js b/api-ign-js/src/facade/js/mapea.js index d4db3cf92..efd4058a8 100644 --- a/api-ign-js/src/facade/js/mapea.js +++ b/api-ign-js/src/facade/js/mapea.js @@ -9,6 +9,7 @@ import MapImpl from 'impl/Map'; import Map from 'M/Map'; import WFS from 'M/layer/WFS'; import TMS from 'M/layer/TMS'; +import LayerGroup from 'M/layer/LayerGroup'; import WMTS from 'M/layer/WMTS'; import MapLibre from 'M/layer/MapLibre'; import Point from 'M/style/Point'; @@ -204,6 +205,41 @@ let quickLayers = () => { }, { disableBackgroundColor: false, }), + HIBRIDO: new LayerGroup({ + name: 'Híbrido', + layers: [ + new TMS({ + url: 'https://tms-pnoa-ma.idee.es/1.0.0/pnoa-ma/{z}/{x}/{-y}.jpeg', + legend: 'PNOA_MA', + name: 'PNOA_MA', + visible: true, + transparent: false, + tileGridMaxZoom: 19, + attribution: { + name: 'PNOA-MA', + description: 'IGN', + url: 'https://www.ign.es', + contentAttributions: 'https://componentes.cnig.es/api-core/files/attributions/WMTS_PNOA_20170220/atribucionPNOA_Url.kml', + contentType: 'kml', + }, + }, { + crossOrigin: 'anonymous', + displayInLayerSwitcher: false, + }), + new TMS({ + url: 'https://tms-ign-base.idee.es/1.0.0/IGNBaseOrto/{z}/{x}/{-y}.png', + legend: 'IGNBaseOrto', + name: 'IGNBaseOrto', + visible: true, + transparent: false, + tileGridMaxZoom: 17, + attribution: '

IDEE: SCNE

', + }, { + crossOrigin: 'anonymous', + displayInLayerSwitcher: false, + }), + ], + }), }; }; From d20eb8f6bd2a2fa8f7a507507026d9a75bf84cbb Mon Sep 17 00:00:00 2001 From: alvaroCodes Date: Fri, 29 Nov 2024 08:44:55 +0100 Subject: [PATCH 2/2] CHANGELOG: Grupo de capas control backgroundlayers --- CHANGELOG | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG b/CHANGELOG index 676b9c0e3..38c7f9001 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -83,6 +83,7 @@ - Se modifica estilo proporcional para soportar VendorOptions en estilos simples y genéricos - Se controla en formato GML de capas WFS 2.0.0 las etiquetas inválidas wfs - Inteligencia Popup y Dialog por defecto estará activada dicha funcionalidad. +- Se modifica la capa híbrida del control backgroundlayers a grupo de capas. 22/05/24 - Versión 5.0.0 - Se incluye nuevo tipo de capa GeoTiff.