guard against null tileInfo
This commit is contained in:
@@ -148,7 +148,7 @@ OpenLayers.Layer.UTFGrid = OpenLayers.Class(OpenLayers.Layer.XYZ, {
|
|||||||
getFeatureInfo: function(location) {
|
getFeatureInfo: function(location) {
|
||||||
var info = null;
|
var info = null;
|
||||||
var tileInfo = this.getTileData(location);
|
var tileInfo = this.getTileData(location);
|
||||||
if (tileInfo.tile) {
|
if (tileInfo && tileInfo.tile) {
|
||||||
info = tileInfo.tile.getFeatureInfo(tileInfo.i, tileInfo.j);
|
info = tileInfo.tile.getFeatureInfo(tileInfo.i, tileInfo.j);
|
||||||
}
|
}
|
||||||
return info;
|
return info;
|
||||||
|
|||||||
Reference in New Issue
Block a user