Remove goog.isNull in source classes
This commit is contained in:
@@ -195,7 +195,7 @@ ol.source.Tile.prototype.getTileGrid = function() {
|
||||
* @return {ol.tilegrid.TileGrid} Tile grid.
|
||||
*/
|
||||
ol.source.Tile.prototype.getTileGridForProjection = function(projection) {
|
||||
if (goog.isNull(this.tileGrid)) {
|
||||
if (!this.tileGrid) {
|
||||
return ol.tilegrid.getForProjection(projection);
|
||||
} else {
|
||||
return this.tileGrid;
|
||||
@@ -231,7 +231,7 @@ ol.source.Tile.prototype.getTileCoordForTileUrlFunction =
|
||||
var projection = opt_projection !== undefined ?
|
||||
opt_projection : this.getProjection();
|
||||
var tileGrid = this.getTileGridForProjection(projection);
|
||||
goog.asserts.assert(!goog.isNull(tileGrid), 'tile grid needed');
|
||||
goog.asserts.assert(tileGrid, 'tile grid needed');
|
||||
if (this.getWrapX() && projection.isGlobal()) {
|
||||
tileCoord = ol.tilecoord.wrapX(tileCoord, tileGrid, projection);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user