More verbose variable names
This commit is contained in:
@@ -213,10 +213,10 @@ ol.renderer.canvas.VectorLayer.prototype.getFeatureInfoForPixel =
|
|||||||
var cachedTile = this.tileCache_.get(key);
|
var cachedTile = this.tileCache_.get(key);
|
||||||
var symbolSizes = cachedTile[1];
|
var symbolSizes = cachedTile[1];
|
||||||
var maxSymbolSize = cachedTile[2];
|
var maxSymbolSize = cachedTile[2];
|
||||||
var hw = maxSymbolSize[0] / 2;
|
var halfMaxWidth = maxSymbolSize[0] / 2;
|
||||||
var hh = maxSymbolSize[1] / 2;
|
var halfMaxHeight = maxSymbolSize[1] / 2;
|
||||||
var locationMin = [location[0] - hw, location[1] - hh];
|
var locationMin = [location[0] - halfMaxWidth, location[1] - halfMaxHeight];
|
||||||
var locationMax = [location[0] + hw, location[1] + hh];
|
var locationMax = [location[0] + halfMaxWidth, location[1] + halfMaxHeight];
|
||||||
var locationBbox = ol.extent.boundingExtent([locationMin, locationMax]);
|
var locationBbox = ol.extent.boundingExtent([locationMin, locationMax]);
|
||||||
var filter = new ol.filter.Extent(locationBbox);
|
var filter = new ol.filter.Extent(locationBbox);
|
||||||
var candidates = this.getLayer().getFeatures(filter);
|
var candidates = this.getLayer().getFeatures(filter);
|
||||||
|
|||||||
Reference in New Issue
Block a user