Named exports from ol/net
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
import {inherits} from '../index.js';
|
||||
import {createFromTileUrlFunctions} from '../tileurlfunction.js';
|
||||
import {applyTransform, intersects} from '../extent.js';
|
||||
import _ol_net_ from '../net.js';
|
||||
import {jsonp as requestJSONP} from '../net.js';
|
||||
import {get as getProjection, getTransformFromProjections} from '../proj.js';
|
||||
import SourceState from '../source/State.js';
|
||||
import TileImage from '../source/TileImage.js';
|
||||
@@ -70,7 +70,7 @@ const BingMaps = function(options) {
|
||||
'?uriScheme=https&include=ImageryProviders&key=' + this.apiKey_ +
|
||||
'&c=' + this.culture_;
|
||||
|
||||
_ol_net_.jsonp(url, this.handleImageryMetadataResponse.bind(this), undefined,
|
||||
requestJSONP(url, this.handleImageryMetadataResponse.bind(this), undefined,
|
||||
'jsonp');
|
||||
|
||||
};
|
||||
|
||||
@@ -11,7 +11,7 @@ import {inherits} from '../index.js';
|
||||
import {createFromTemplates} from '../tileurlfunction.js';
|
||||
import {assert} from '../asserts.js';
|
||||
import {applyTransform, intersects} from '../extent.js';
|
||||
import _ol_net_ from '../net.js';
|
||||
import {jsonp as requestJSONP} from '../net.js';
|
||||
import {get as getProjection, getTransformFromProjections} from '../proj.js';
|
||||
import SourceState from '../source/State.js';
|
||||
import TileImage from '../source/TileImage.js';
|
||||
@@ -48,7 +48,7 @@ const TileJSON = function(options) {
|
||||
|
||||
if (options.url) {
|
||||
if (options.jsonp) {
|
||||
_ol_net_.jsonp(options.url, this.handleTileJSONResponse.bind(this),
|
||||
requestJSONP(options.url, this.handleTileJSONResponse.bind(this),
|
||||
this.handleTileJSONError.bind(this));
|
||||
} else {
|
||||
const client = new XMLHttpRequest();
|
||||
|
||||
@@ -9,7 +9,7 @@ import {assert} from '../asserts.js';
|
||||
import {listenOnce} from '../events.js';
|
||||
import EventType from '../events/EventType.js';
|
||||
import {applyTransform, intersects} from '../extent.js';
|
||||
import _ol_net_ from '../net.js';
|
||||
import {jsonp as requestJSONP} from '../net.js';
|
||||
import {get as getProjection, getTransformFromProjections} from '../proj.js';
|
||||
import SourceState from '../source/State.js';
|
||||
import TileSource from '../source/Tile.js';
|
||||
@@ -58,7 +58,7 @@ const UTFGrid = function(options) {
|
||||
|
||||
if (options.url) {
|
||||
if (this.jsonp_) {
|
||||
_ol_net_.jsonp(options.url, this.handleTileJSONResponse.bind(this),
|
||||
requestJSONP(options.url, this.handleTileJSONResponse.bind(this),
|
||||
this.handleTileJSONError.bind(this));
|
||||
} else {
|
||||
const client = new XMLHttpRequest();
|
||||
@@ -425,7 +425,7 @@ UTFGrid.Tile_.prototype.loadInternal_ = function() {
|
||||
if (this.state == TileState.IDLE) {
|
||||
this.state = TileState.LOADING;
|
||||
if (this.jsonp_) {
|
||||
_ol_net_.jsonp(this.src_, this.handleLoad_.bind(this),
|
||||
requestJSONP(this.src_, this.handleLoad_.bind(this),
|
||||
this.handleError_.bind(this));
|
||||
} else {
|
||||
const client = new XMLHttpRequest();
|
||||
|
||||
Reference in New Issue
Block a user