Redefine ol.Coordinate to be Array.<number>
This commit is contained in:
@@ -196,7 +196,7 @@ ol.test.source.MockTileSource = function(loaded) {
|
||||
var tileGrid = new ol.tilegrid.TileGrid({
|
||||
resolutions: [360 / 256, 180 / 256, 90 / 256, 45 / 256],
|
||||
extent: extent,
|
||||
origin: new ol.Coordinate(-180, -180),
|
||||
origin: [-180, -180],
|
||||
tileSize: new ol.Size(256, 256)
|
||||
});
|
||||
|
||||
@@ -265,7 +265,6 @@ describe('ol.test.source.MockTileSource', function() {
|
||||
});
|
||||
|
||||
goog.require('goog.object');
|
||||
goog.require('ol.Coordinate');
|
||||
goog.require('ol.Extent');
|
||||
goog.require('ol.Size');
|
||||
goog.require('ol.Tile');
|
||||
|
||||
@@ -17,7 +17,7 @@ describe('ol.source.XYZ', function() {
|
||||
|
||||
it('return the expected URL', function() {
|
||||
|
||||
var coordinate = new ol.Coordinate(829330.2064098881, 5933916.615134273);
|
||||
var coordinate = [829330.2064098881, 5933916.615134273];
|
||||
var tileUrl;
|
||||
|
||||
tileUrl = xyzTileSource.tileUrlFunction(
|
||||
@@ -86,6 +86,5 @@ describe('ol.source.XYZ', function() {
|
||||
|
||||
});
|
||||
|
||||
goog.require('ol.Coordinate');
|
||||
goog.require('ol.TileCoord');
|
||||
goog.require('ol.source.XYZ');
|
||||
|
||||
Reference in New Issue
Block a user