diff --git a/OsmAnd/src/net/osmand/plus/PoiFilter.java b/OsmAnd/src/net/osmand/plus/PoiFilter.java index 1f1c0efdd5..2c167177fb 100644 --- a/OsmAnd/src/net/osmand/plus/PoiFilter.java +++ b/OsmAnd/src/net/osmand/plus/PoiFilter.java @@ -171,7 +171,7 @@ public class PoiFilter { protected List searchAmenities(double lat, double lon, double topLatitude, double bottomLatitude, double leftLongitude, double rightLongitude, final ResultMatcher matcher) { return app.getResourceManager().searchAmenities(this, - topLatitude, leftLongitude, bottomLatitude, rightLongitude, matcher); + topLatitude, leftLongitude, bottomLatitude, rightLongitude, -1, matcher); } public List searchAgain(double lat, double lon) { diff --git a/OsmAnd/src/net/osmand/plus/resources/ResourceManager.java b/OsmAnd/src/net/osmand/plus/resources/ResourceManager.java index eb87652d0f..36b92ae011 100644 --- a/OsmAnd/src/net/osmand/plus/resources/ResourceManager.java +++ b/OsmAnd/src/net/osmand/plus/resources/ResourceManager.java @@ -717,7 +717,7 @@ public class ResourceManager { } public List searchAmenities(PoiFilter filter, - double topLatitude, double leftLongitude, double bottomLatitude, double rightLongitude, final ResultMatcher matcher) { + double topLatitude, double leftLongitude, double bottomLatitude, double rightLongitude, int zoom, final ResultMatcher matcher) { final List amenities = new ArrayList(); if(filter instanceof NameFinderPoiFilter || filter instanceof SearchByNameFilter){ List tempResults = filter instanceof NameFinderPoiFilter ? diff --git a/OsmAnd/src/net/osmand/plus/views/POIMapLayer.java b/OsmAnd/src/net/osmand/plus/views/POIMapLayer.java index 1e640a74d1..451917d8a1 100644 --- a/OsmAnd/src/net/osmand/plus/views/POIMapLayer.java +++ b/OsmAnd/src/net/osmand/plus/views/POIMapLayer.java @@ -71,7 +71,7 @@ public class POIMapLayer extends OsmandMapLayer implements ContextMenuLayer.ICon protected List calculateResult(RotatedTileBox tileBox) { QuadRect latLonBounds = tileBox.getLatLonBounds(); return resourceManager.searchAmenities(filter, latLonBounds.top, latLonBounds.left, - latLonBounds.bottom, latLonBounds.right, new ResultMatcher() { + latLonBounds.bottom, latLonBounds.right, tileBox.getZoom(), new ResultMatcher() { @Override public boolean publish(Amenity object) {