Fix 33% display for poi

This commit is contained in:
Victor Shcherb 2015-05-02 23:51:18 +02:00
parent 2e0a3fe7aa
commit accba7899f

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) {