From 8131d810f368106dec6108c2cb7b839efa38767a Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Sat, 2 May 2015 23:51:18 +0200 Subject: [PATCH] Fix 33% display for poi --- OsmAnd/src/net/osmand/plus/views/POIMapLayer.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) {