Fix poi layer

This commit is contained in:
Victor Shcherb 2014-08-04 00:07:40 +02:00
parent f533f71695
commit 027cfd786c
3 changed files with 3 additions and 3 deletions

View file

@ -171,7 +171,7 @@ public class PoiFilter {
protected List<Amenity> searchAmenities(double lat, double lon, double topLatitude,
double bottomLatitude, double leftLongitude, double rightLongitude, final ResultMatcher<Amenity> matcher) {
return app.getResourceManager().searchAmenities(this,
topLatitude, leftLongitude, bottomLatitude, rightLongitude, matcher);
topLatitude, leftLongitude, bottomLatitude, rightLongitude, -1, matcher);
}
public List<Amenity> searchAgain(double lat, double lon) {

View file

@ -717,7 +717,7 @@ public class ResourceManager {
}
public List<Amenity> searchAmenities(PoiFilter filter,
double topLatitude, double leftLongitude, double bottomLatitude, double rightLongitude, final ResultMatcher<Amenity> matcher) {
double topLatitude, double leftLongitude, double bottomLatitude, double rightLongitude, int zoom, final ResultMatcher<Amenity> matcher) {
final List<Amenity> amenities = new ArrayList<Amenity>();
if(filter instanceof NameFinderPoiFilter || filter instanceof SearchByNameFilter){
List<Amenity> tempResults = filter instanceof NameFinderPoiFilter ?

View file

@ -71,7 +71,7 @@ public class POIMapLayer extends OsmandMapLayer implements ContextMenuLayer.ICon
protected List<Amenity> calculateResult(RotatedTileBox tileBox) {
QuadRect latLonBounds = tileBox.getLatLonBounds();
return resourceManager.searchAmenities(filter, latLonBounds.top, latLonBounds.left,
latLonBounds.bottom, latLonBounds.right, new ResultMatcher<Amenity>() {
latLonBounds.bottom, latLonBounds.right, tileBox.getZoom(), new ResultMatcher<Amenity>() {
@Override
public boolean publish(Amenity object) {