Stronger type checking to continue only if data is defined
This commit is contained in:
@@ -271,7 +271,7 @@ ol.source.TileUTFGridTile_.prototype.getImage = function(opt_context) {
|
|||||||
*/
|
*/
|
||||||
ol.source.TileUTFGridTile_.prototype.getData = function(coordinate) {
|
ol.source.TileUTFGridTile_.prototype.getData = function(coordinate) {
|
||||||
if (goog.isNull(this.grid_) || goog.isNull(this.keys_) ||
|
if (goog.isNull(this.grid_) || goog.isNull(this.keys_) ||
|
||||||
goog.isNull(this.data_)) {
|
!goog.isDefAndNotNull(this.data_)) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
var xRelative = (coordinate[0] - this.extent_[0]) /
|
var xRelative = (coordinate[0] - this.extent_[0]) /
|
||||||
|
|||||||
Reference in New Issue
Block a user