Merge pull request #3556 from klokantech/tileutfgrid-fix

Minor TileUTFGrid error fix
This commit is contained in:
Éric Lemoine
2015-04-14 17:56:27 +02:00

View File

@@ -271,7 +271,7 @@ ol.source.TileUTFGridTile_.prototype.getImage = function(opt_context) {
*/
ol.source.TileUTFGridTile_.prototype.getData = function(coordinate) {
if (goog.isNull(this.grid_) || goog.isNull(this.keys_) ||
goog.isNull(this.data_)) {
!goog.isDefAndNotNull(this.data_)) {
return null;
}
var xRelative = (coordinate[0] - this.extent_[0]) /