Fix 33% display for poi

This commit is contained in:
Victor Shcherb 2015-05-02 23:51:18 +02:00
parent d8c676e632
commit 8131d810f3

View file

@ -94,8 +94,10 @@ public class POIMapLayer extends OsmandMapLayer implements ContextMenuLayer.ICon
if (filter == null) {
return new ArrayList<Amenity>();
}
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<Amenity>() {
latLonBounds.bottom, latLonBounds.right, z , new ResultMatcher<Amenity>() {
@Override
public boolean publish(Amenity object) {