Make rendercomplete work with vector sources without loader

This commit is contained in:
ahocevar
2018-10-24 18:37:51 +02:00
parent e8da3929d5
commit f82619d6d0
2 changed files with 9 additions and 2 deletions

View File

@@ -4,7 +4,7 @@ import Map from '../../../src/ol/Map.js';
import MapEvent from '../../../src/ol/MapEvent.js';
import Overlay from '../../../src/ol/Overlay.js';
import View from '../../../src/ol/View.js';
import LineString from '../../../src/ol/geom/LineString.js';
import {LineString, Point} from '../../../src/ol/geom';
import {TOUCH} from '../../../src/ol/has.js';
import {focus} from '../../../src/ol/events/condition.js';
import {defaults as defaultInteractions} from '../../../src/ol/interaction.js';
@@ -220,6 +220,13 @@ describe('ol.Map', function() {
url: 'spec/ol/data/point.json',
format: new GeoJSON()
})
}),
new VectorLayer({
source: new VectorSource({
features: [
new Feature(new Point([0, 0]))
]
})
})
]
});