iTowns / itowns

A Three.js-based framework written in Javascript/WebGL for visualizing 3D geospatial data
http://www.itowns-project.org
Other
1.11k stars 303 forks source link

[BUG] Missing data is creating too much blur on the map #2311

Open AnthonyGlt opened 8 months ago

AnthonyGlt commented 8 months ago

When MVT data are missing, there is some kind of visual bug happening around the missing parts. It look like it's missing more data than it actually is.

Context

I'm using a MVT covering all France, so outside of France I don't have data. But half is missing in the representation done by iTowns

Steps to Reproduce (for bugs)

I'm using the source from IGN https://data.geopf.fr/annexes/ressources/vectorTiles/styles/PLAN.IGN/standard.json.

datamissing.webm

AnthonyGlt commented 8 months ago
   const mvtSource = new itowns.VectorTilesSource({
                style: 'https://data.geopf.fr/annexes/ressources/vectorTiles/styles/PLAN.IGN/standard.json',
                crs: 'EPSG:3857',

            });

            var mvtLayer = new itowns.ColorLayer('mvtLayer',{
                source: mvtSource,
                addLabelLayer: true,
            });