Make ol.source.TileImage#crossOrigin protected, not private

This commit is contained in:
Tom Payne
2014-01-02 13:01:22 +01:00
parent 54d388f8fa
commit 4ad63725d9
+3 -3
View File
@@ -57,10 +57,10 @@ ol.source.TileImage = function(options) {
ol.TileUrlFunction.nullTileUrlFunction; ol.TileUrlFunction.nullTileUrlFunction;
/** /**
* @private * @protected
* @type {?string} * @type {?string}
*/ */
this.crossOrigin_ = this.crossOrigin =
goog.isDef(options.crossOrigin) ? options.crossOrigin : null; goog.isDef(options.crossOrigin) ? options.crossOrigin : null;
/** /**
@@ -120,7 +120,7 @@ ol.source.TileImage.prototype.getTile = function(z, x, y, projection) {
tileCoord, tileCoord,
goog.isDef(tileUrl) ? ol.TileState.IDLE : ol.TileState.EMPTY, goog.isDef(tileUrl) ? ol.TileState.IDLE : ol.TileState.EMPTY,
goog.isDef(tileUrl) ? tileUrl : '', goog.isDef(tileUrl) ? tileUrl : '',
this.crossOrigin_, this.crossOrigin,
this.tileLoadFunction_); this.tileLoadFunction_);
this.tileCache.set(tileCoordKey, tile); this.tileCache.set(tileCoordKey, tile);
return tile; return tile;