Replace VectorTileRenderType enum with typedef

This commit is contained in:
Maximilian Krög
2022-07-16 23:11:02 +02:00
parent 7f2f789d7f
commit 361f1ab837
7 changed files with 18 additions and 48 deletions

View File

@@ -1,7 +1,6 @@
import MVT from '../../../../src/ol/format/MVT.js';
import Map from '../../../../src/ol/Map.js';
import VectorTileLayer from '../../../../src/ol/layer/VectorTile.js';
import VectorTileRenderType from '../../../../src/ol/layer/VectorTileRenderType.js';
import VectorTileSource from '../../../../src/ol/source/VectorTile.js';
import View from '../../../../src/ol/View.js';
import {createXYZ} from '../../../../src/ol/tilegrid.js';
@@ -9,7 +8,7 @@ import {createXYZ} from '../../../../src/ol/tilegrid.js';
new Map({
layers: [
new VectorTileLayer({
renderMode: VectorTileRenderType.VECTOR,
renderMode: 'vector',
source: new VectorTileSource({
format: new MVT(),
tileGrid: createXYZ(),