Named export for ol/featureloader
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import _ol_featureloader_ from '../../../src/ol/featureloader.js';
|
||||
import {xhr} from '../../../src/ol/featureloader.js';
|
||||
import GeoJSON from '../../../src/ol/format/GeoJSON.js';
|
||||
import _ol_source_Vector_ from '../../../src/ol/source/Vector.js';
|
||||
|
||||
@@ -19,7 +19,7 @@ describe('ol.featureloader', function() {
|
||||
});
|
||||
|
||||
it('adds features to the source', function(done) {
|
||||
loader = _ol_featureloader_.xhr(url, format);
|
||||
loader = xhr(url, format);
|
||||
source.on('addfeature', function(e) {
|
||||
expect(source.getFeatures().length).to.be.greaterThan(0);
|
||||
done();
|
||||
@@ -32,7 +32,7 @@ describe('ol.featureloader', function() {
|
||||
url = function(extent, resolution, projection) {
|
||||
return 'spec/ol/data/point.json';
|
||||
};
|
||||
loader = _ol_featureloader_.xhr(url, format);
|
||||
loader = xhr(url, format);
|
||||
|
||||
source.on('addfeature', function(e) {
|
||||
expect(source.getFeatures().length).to.be.greaterThan(0);
|
||||
@@ -52,7 +52,7 @@ describe('ol.featureloader', function() {
|
||||
done();
|
||||
return 'spec/ol/data/point.json';
|
||||
};
|
||||
loader = _ol_featureloader_.xhr(url, format);
|
||||
loader = xhr(url, format);
|
||||
loader.call(source, [], 1, 'EPSG:3857');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user