- MapView now requires to setMapDatabase(MapOptions) explicitly

- pass MapOptions when opening MapDatabase
This commit is contained in:
Hannes Janetzek
2012-11-26 12:33:17 +01:00
parent 2ac904ecef
commit 7f598f5ccf
10 changed files with 351 additions and 300 deletions

View File

@@ -478,6 +478,9 @@ public class TileGenerator implements IRenderCallback, IMapDatabaseCallback {
private String mMapProjection;
public void setMapDatabase(IMapDatabase mapDatabase) {
if (mMapDatabase != null)
mMapDatabase.close();
mMapDatabase = mapDatabase;
mMapProjection = mMapDatabase.getMapProjection();
}