More verbose variable names

This commit is contained in:
ahocevar
2013-05-16 10:14:56 +02:00
parent 4e7ffc2711
commit 2d5c0df7cd

View File

@@ -213,10 +213,10 @@ ol.renderer.canvas.VectorLayer.prototype.getFeatureInfoForPixel =
var cachedTile = this.tileCache_.get(key);
var symbolSizes = cachedTile[1];
var maxSymbolSize = cachedTile[2];
var hw = maxSymbolSize[0] / 2;
var hh = maxSymbolSize[1] / 2;
var locationMin = [location[0] - hw, location[1] - hh];
var locationMax = [location[0] + hw, location[1] + hh];
var halfMaxWidth = maxSymbolSize[0] / 2;
var halfMaxHeight = maxSymbolSize[1] / 2;
var locationMin = [location[0] - halfMaxWidth, location[1] - halfMaxHeight];
var locationMax = [location[0] + halfMaxWidth, location[1] + halfMaxHeight];
var locationBbox = ol.extent.boundingExtent([locationMin, locationMax]);
var filter = new ol.filter.Extent(locationBbox);
var candidates = this.getLayer().getFeatures(filter);