close polygons implicitly when using OSciMap2 database
This commit is contained in:
@@ -30,6 +30,7 @@ import org.oscim.core.MapPosition;
|
||||
import org.oscim.core.Tile;
|
||||
import org.oscim.database.IMapDatabase;
|
||||
import org.oscim.database.MapDatabaseFactory;
|
||||
import org.oscim.database.MapDatabases;
|
||||
import org.oscim.database.MapInfo;
|
||||
import org.oscim.database.MapOptions;
|
||||
import org.oscim.database.OpenResult;
|
||||
@@ -100,6 +101,9 @@ public class MapView extends RelativeLayout {
|
||||
|
||||
private boolean mClearTiles;
|
||||
|
||||
// FIXME: keep until old pbmap reader is removed
|
||||
public static boolean enableClosePolygons = false;
|
||||
|
||||
/**
|
||||
* @param context
|
||||
* the enclosing MapActivity instance.
|
||||
@@ -369,6 +373,11 @@ public class MapView extends RelativeLayout {
|
||||
tileGenerator.setMapDatabase(mapDatabase);
|
||||
}
|
||||
|
||||
if (options.db == MapDatabases.OSCIMAP_READER)
|
||||
MapView.enableClosePolygons = true;
|
||||
else
|
||||
MapView.enableClosePolygons = false;
|
||||
|
||||
mapWorkersProceed();
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user