Rename _ol_source_Image_ to ImageSource
This commit is contained in:
@@ -2,7 +2,7 @@ import ImageTile from '../../../src/ol/ImageTile.js';
|
||||
import TileState from '../../../src/ol/TileState.js';
|
||||
import _ol_events_ from '../../../src/ol/events.js';
|
||||
import EventType from '../../../src/ol/events/EventType.js';
|
||||
import _ol_source_Image_ from '../../../src/ol/source/Image.js';
|
||||
import ImageSource from '../../../src/ol/source/Image.js';
|
||||
|
||||
|
||||
describe('ol.ImageTile', function() {
|
||||
@@ -13,7 +13,7 @@ describe('ol.ImageTile', function() {
|
||||
var tileCoord = [0, 0, 0];
|
||||
var state = TileState.IDLE;
|
||||
var src = 'spec/ol/data/osm-0-0-0.png';
|
||||
var tileLoadFunction = _ol_source_Image_.defaultImageLoadFunction;
|
||||
var tileLoadFunction = ImageSource.defaultImageLoadFunction;
|
||||
var tile = new ImageTile(tileCoord, state, src, null, tileLoadFunction);
|
||||
|
||||
var previousState = tile.getState();
|
||||
@@ -38,7 +38,7 @@ describe('ol.ImageTile', function() {
|
||||
var tileCoord = [0, 0, 0];
|
||||
var state = TileState.ERROR;
|
||||
var src = 'spec/ol/data/osm-0-0-0.png';
|
||||
var tileLoadFunction = _ol_source_Image_.defaultImageLoadFunction;
|
||||
var tileLoadFunction = ImageSource.defaultImageLoadFunction;
|
||||
var tile = new ImageTile(tileCoord, state, src, null, tileLoadFunction);
|
||||
|
||||
var previousState = tile.getState();
|
||||
@@ -63,7 +63,7 @@ describe('ol.ImageTile', function() {
|
||||
var tileCoord = [0, 0, 0];
|
||||
var state = TileState.IDLE;
|
||||
var src = 'spec/ol/data/osm-0-0-99.png';
|
||||
var tileLoadFunction = _ol_source_Image_.defaultImageLoadFunction;
|
||||
var tileLoadFunction = ImageSource.defaultImageLoadFunction;
|
||||
var tile = new ImageTile(tileCoord, state, src, null, tileLoadFunction);
|
||||
|
||||
var key = _ol_events_.listen(tile, EventType.CHANGE, function(event) {
|
||||
@@ -89,7 +89,7 @@ describe('ol.ImageTile', function() {
|
||||
var tileCoord = [0, 0, 0];
|
||||
var state = TileState.IDLE;
|
||||
var src = 'spec/ol/data/osm-0-0-0.png';
|
||||
var tileLoadFunction = _ol_source_Image_.defaultImageLoadFunction;
|
||||
var tileLoadFunction = ImageSource.defaultImageLoadFunction;
|
||||
var tile = new ImageTile(tileCoord, state, src, null, tileLoadFunction);
|
||||
tile.load();
|
||||
expect(tile.getState()).to.be(TileState.LOADING);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import _ol_transform_ from '../../../../../src/ol/transform.js';
|
||||
import Map from '../../../../../src/ol/Map.js';
|
||||
import ImageLayer from '../../../../../src/ol/layer/Image.js';
|
||||
import _ol_source_Image_ from '../../../../../src/ol/source/Image.js';
|
||||
import ImageSource from '../../../../../src/ol/source/Image.js';
|
||||
import WebGLImageLayerRenderer from '../../../../../src/ol/renderer/webgl/ImageLayer.js';
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ describe('ol.renderer.webgl.ImageLayer', function() {
|
||||
target: document.createElement('div')
|
||||
});
|
||||
var layer = new ImageLayer({
|
||||
source: new _ol_source_Image_({
|
||||
source: new ImageSource({
|
||||
extent: [0, 0, 1, 1]
|
||||
})
|
||||
});
|
||||
|
||||
@@ -2,7 +2,7 @@ import ImageTile from '../../../src/ol/ImageTile.js';
|
||||
import _ol_Tile_ from '../../../src/ol/Tile.js';
|
||||
import TileQueue from '../../../src/ol/TileQueue.js';
|
||||
import TileState from '../../../src/ol/TileState.js';
|
||||
import _ol_source_Image_ from '../../../src/ol/source/Image.js';
|
||||
import ImageSource from '../../../src/ol/source/Image.js';
|
||||
import PriorityQueue from '../../../src/ol/structs/PriorityQueue.js';
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@ describe('ol.TileQueue', function() {
|
||||
'yH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==';
|
||||
|
||||
var tileLoadFunction = opt_tileLoadFunction ?
|
||||
opt_tileLoadFunction : _ol_source_Image_.defaultImageLoadFunction;
|
||||
opt_tileLoadFunction : ImageSource.defaultImageLoadFunction;
|
||||
return new ImageTile(tileCoord, state, src, null, tileLoadFunction);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user