Fix loading flag for vector loading strategies

This commit is contained in:
Andreas Hocevar
2021-01-23 12:15:12 +01:00
parent 9e6ec55758
commit 4f2b2c5750
2 changed files with 20 additions and 2 deletions

View File

@@ -28,7 +28,9 @@ import {
transform,
useGeographic,
} from '../../../src/ol/proj.js';
import {createXYZ} from '../../../src/ol/tilegrid.js';
import {defaults as defaultInteractions} from '../../../src/ol/interaction.js';
import {tile as tileStrategy} from '../../../src/ol/loadingstrategy.js';
describe('ol.Map', function () {
describe('constructor', function () {
@@ -226,6 +228,13 @@ describe('ol.Map', function () {
format: new GeoJSON(),
}),
}),
new VectorLayer({
source: new VectorSource({
url: 'spec/ol/data/point.json',
format: new GeoJSON(),
strategy: tileStrategy(createXYZ()),
}),
}),
new VectorLayer({
source: new VectorSource({
features: [new Feature(new Point([0, 0]))],