From 72e298d07209d2c0f742360986710fce7c1be134 Mon Sep 17 00:00:00 2001 From: gbloch Date: Sun, 15 Aug 2021 09:07:50 +0200 Subject: [PATCH] fix(map): fix label cropping and use online provided mapbox style --- public/map.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/public/map.js b/public/map.js index 9c40b21..e1bf0ad 100644 --- a/public/map.js +++ b/public/map.js @@ -17,13 +17,13 @@ const go = () => { }), attributions: '© IGN', - declutter: false, + declutter: true, }); const fetchStyle = async () => { let plan = await fetch( - `ign/standard.json` - // `https://wxs.ign.fr/${ignKey}/static/vectorTiles/styles/PLAN.IGN/standard.json` + // `ign/standard.json` + `https://wxs.ign.fr/${ignKey}/static/vectorTiles/styles/PLAN.IGN/standard.json` ); const style = await plan.json(); const setStyle = async () => { @@ -40,6 +40,8 @@ const go = () => { const map = new ol.Map({ layers: [ new ol.layer.GeoportalWMTS({ + // layer: 'GEOGRAPHICALGRIDSYSTEMS.MAPS', + // layer: 'OI.OrthoimageCoverage', layer: 'ORTHOIMAGERY.ORTHOPHOTOS', }), ],