Replace VectorTileRenderType enum with typedef
This commit is contained in:
@@ -11,7 +11,6 @@ import TileState from '../../../../../../src/ol/TileState.js';
|
||||
import VectorRenderTile from '../../../../../../src/ol/VectorRenderTile.js';
|
||||
import VectorTile from '../../../../../../src/ol/VectorTile.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 XYZ from '../../../../../../src/ol/source/XYZ.js';
|
||||
@@ -124,7 +123,7 @@ describe('ol/renderer/canvas/VectorTileLayer', function () {
|
||||
|
||||
it('does not render images for pure vector rendering', function () {
|
||||
const testLayer = new VectorTileLayer({
|
||||
renderMode: VectorTileRenderType.VECTOR,
|
||||
renderMode: 'vector',
|
||||
source: source,
|
||||
style: layerStyle,
|
||||
});
|
||||
|
||||
@@ -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',
|
||||
opacity: 0.1,
|
||||
source: new VectorTileSource({
|
||||
format: new MVT(),
|
||||
|
||||
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user