diff --git a/OsmAnd/src/net/osmand/plus/views/POIMapLayer.java b/OsmAnd/src/net/osmand/plus/views/POIMapLayer.java index 264c9acf11..e2fe66d21c 100644 --- a/OsmAnd/src/net/osmand/plus/views/POIMapLayer.java +++ b/OsmAnd/src/net/osmand/plus/views/POIMapLayer.java @@ -94,8 +94,10 @@ public class POIMapLayer extends OsmandMapLayer implements ContextMenuLayer.ICon if (filter == null) { return new ArrayList(); } + int z = (int) Math.floor(tileBox.getZoom() + Math.log(view.getSettings().MAP_DENSITY.get()) / Math.log(2)); + return filter.searchAmenities(latLonBounds.top, latLonBounds.left, - latLonBounds.bottom, latLonBounds.right, tileBox.getZoom(), new ResultMatcher() { + latLonBounds.bottom, latLonBounds.right, z , new ResultMatcher() { @Override public boolean publish(Amenity object) {