Use named imports from extent

This commit is contained in:
Andreas Hocevar
2017-12-13 14:05:42 +01:00
parent 7247ccbf38
commit c0c43bca84
77 changed files with 360 additions and 385 deletions

View File

@@ -8,7 +8,7 @@ import _ol_TileUrlFunction_ from '../TileUrlFunction.js';
import _ol_asserts_ from '../asserts.js';
import _ol_events_ from '../events.js';
import _ol_events_EventType_ from '../events/EventType.js';
import _ol_extent_ from '../extent.js';
import {applyTransform, intersects} from '../extent.js';
import _ol_net_ from '../net.js';
import _ol_proj_ from '../proj.js';
import _ol_source_State_ from '../source/State.js';
@@ -173,7 +173,7 @@ _ol_source_TileUTFGrid_.prototype.handleTileJSONResponse = function(tileJSON) {
if (tileJSON.bounds !== undefined) {
var transform = _ol_proj_.getTransformFromProjections(
epsg4326Projection, sourceProjection);
extent = _ol_extent_.applyTransform(tileJSON.bounds, transform);
extent = applyTransform(tileJSON.bounds, transform);
}
var minZoom = tileJSON.minzoom || 0;
@@ -201,7 +201,7 @@ _ol_source_TileUTFGrid_.prototype.handleTileJSONResponse = function(tileJSON) {
extent : epsg4326Projection.getExtent();
this.setAttributions(function(frameState) {
if (_ol_extent_.intersects(attributionExtent, frameState.extent)) {
if (intersects(attributionExtent, frameState.extent)) {
return [tileJSON.attribution];
}
return null;