Simpler tile coord access now that we only have one resolution
This commit is contained in:
@@ -240,8 +240,7 @@ ol.renderer.canvas.VectorLayer.prototype.getFeaturesForPixel =
|
|||||||
|
|
||||||
var layer = this.getLayer();
|
var layer = this.getLayer();
|
||||||
var location = map.getCoordinateFromPixel(pixel);
|
var location = map.getCoordinateFromPixel(pixel);
|
||||||
var tileCoord = this.tileGrid_.getTileCoordForCoordAndResolution(
|
var tileCoord = this.tileGrid_.getTileCoordForCoordAndZ(location, 0);
|
||||||
location, this.getMap().getView().getView2D().getResolution());
|
|
||||||
var key = tileCoord.toString();
|
var key = tileCoord.toString();
|
||||||
if (this.tileCache_.containsKey(key)) {
|
if (this.tileCache_.containsKey(key)) {
|
||||||
var cachedTile = this.tileCache_.get(key);
|
var cachedTile = this.tileCache_.get(key);
|
||||||
|
|||||||
Reference in New Issue
Block a user