Mapbox vector layer

This commit is contained in:
Tim Schaub
2020-05-03 14:15:14 -06:00
parent fcc9163494
commit 4d9975754f
20 changed files with 4642 additions and 33 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 72 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';
new Map({
layers: [
new MapboxVector({
styleUrl: '/data/styles/bright-v9.json',
accessToken: 'test-token',
}),
],
target: 'map',
view: new View({
center: [1825927.7316762917, 6143091.089223046],
zoom: 15,
}),
});
render({
message: 'Mapbox vector layer renders',
tolerance: 0.025,
});