Merge pull request #11914 from ahocevar/vectortile-declutter-image-with-text

Fix image with text decluttering
This commit is contained in:
Andreas Hocevar
2021-01-17 18:32:27 +01:00
committed by GitHub
9 changed files with 4064 additions and 4 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 81 KiB

View File

@@ -0,0 +1,22 @@
import Map from '../../../src/ol/Map.js';
import MapboxVector from '../../../src/ol/layer/MapboxVector.js';
import View from '../../../src/ol/View.js';
const mapboxVectorLayer = new MapboxVector({
styleUrl: '/data/styles/bright-v9/style.json',
accessToken: 'test-token',
});
new Map({
layers: [mapboxVectorLayer],
target: 'map',
view: new View({
center: [1822585.77586262, 6141438.140891937],
zoom: 16,
}),
});
render({
message: 'Vector tile layer declutters image with text correctly',
tolerance: 0.01,
});