Rename TileJSONOptions.uri to TileJSONOptions.url
This commit is contained in:
@@ -15,7 +15,7 @@ var map = new ol.Map({
|
|||||||
}),
|
}),
|
||||||
new ol.layer.TileLayer({
|
new ol.layer.TileLayer({
|
||||||
source: new ol.source.TileJSON({
|
source: new ol.source.TileJSON({
|
||||||
uri: 'http://api.tiles.mapbox.com/v3/mapbox.va-quake-aug.jsonp',
|
url: 'http://api.tiles.mapbox.com/v3/mapbox.va-quake-aug.jsonp',
|
||||||
crossOrigin: 'anonymous'
|
crossOrigin: 'anonymous'
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ var map = new ol.Map({
|
|||||||
layers: [
|
layers: [
|
||||||
new ol.layer.TileLayer({
|
new ol.layer.TileLayer({
|
||||||
source: new ol.source.TileJSON({
|
source: new ol.source.TileJSON({
|
||||||
uri: 'http://api.tiles.mapbox.com/v3/mapbox.geography-class.jsonp',
|
url: 'http://api.tiles.mapbox.com/v3/mapbox.geography-class.jsonp',
|
||||||
crossOrigin: 'anonymous'
|
crossOrigin: 'anonymous'
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -155,7 +155,7 @@
|
|||||||
|
|
||||||
@exportObjectLiteral ol.source.TileJSONOptions
|
@exportObjectLiteral ol.source.TileJSONOptions
|
||||||
@exportObjectLiteralProperty ol.source.TileJSONOptions.crossOrigin null|string|undefined
|
@exportObjectLiteralProperty ol.source.TileJSONOptions.crossOrigin null|string|undefined
|
||||||
@exportObjectLiteralProperty ol.source.TileJSONOptions.uri string
|
@exportObjectLiteralProperty ol.source.TileJSONOptions.url string
|
||||||
|
|
||||||
@exportObjectLiteral ol.source.TiledWMSOptions
|
@exportObjectLiteral ol.source.TiledWMSOptions
|
||||||
@exportObjectLiteralProperty ol.source.TiledWMSOptions.attributions Array.<ol.Attribution>|undefined
|
@exportObjectLiteralProperty ol.source.TiledWMSOptions.attributions Array.<ol.Attribution>|undefined
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ ol.source.TileJSON = function(tileJsonOptions) {
|
|||||||
* @type {!goog.async.Deferred}
|
* @type {!goog.async.Deferred}
|
||||||
*/
|
*/
|
||||||
this.deferred_ =
|
this.deferred_ =
|
||||||
goog.net.jsloader.load(tileJsonOptions.uri, {cleanupWhenDone: true});
|
goog.net.jsloader.load(tileJsonOptions.url, {cleanupWhenDone: true});
|
||||||
this.deferred_.addCallback(this.handleTileJSONResponse, this);
|
this.deferred_.addCallback(this.handleTileJSONResponse, this);
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user