Rename TileJSONOptions.uri to TileJSONOptions.url

This commit is contained in:
Frederic Junod
2013-03-25 10:17:37 +01:00
parent 560f645384
commit 415e7a6dd4
4 changed files with 4 additions and 4 deletions

View File

@@ -15,7 +15,7 @@ var map = new ol.Map({
}),
new ol.layer.TileLayer({
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'
})
})

View File

@@ -10,7 +10,7 @@ var map = new ol.Map({
layers: [
new ol.layer.TileLayer({
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'
})
})

View File

@@ -155,7 +155,7 @@
@exportObjectLiteral ol.source.TileJSONOptions
@exportObjectLiteralProperty ol.source.TileJSONOptions.crossOrigin null|string|undefined
@exportObjectLiteralProperty ol.source.TileJSONOptions.uri string
@exportObjectLiteralProperty ol.source.TileJSONOptions.url string
@exportObjectLiteral ol.source.TiledWMSOptions
@exportObjectLiteralProperty ol.source.TiledWMSOptions.attributions Array.<ol.Attribution>|undefined

View File

@@ -61,7 +61,7 @@ ol.source.TileJSON = function(tileJsonOptions) {
* @type {!goog.async.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);
};