MultiMapDataStore mapDataStore = new MultiMapDataStore(MultiMapDataStore.DataPolicy.RETURN_ALL); for (File file : mapFiles) { mapDataStore.addMapDataStore(new MapFile(file), false, false);
@Override protected void onCreate(Bundle savedInstanceState) { pointDataStore = new PointDataStore(); multiMapDataStore = new MultiMapDataStore(MultiMapDataStore.DataPolicy.RETURN_ALL); multiMapDataStore.addMapDataStore(getBaseMapFile(), true, true); multiMapDataStore.addMapDataStore(getUserDataStore(), false, false); super.onCreate(savedInstanceState); } }
@Override protected void onCreate(Bundle savedInstanceState) { worldMapFile = new MapFile(getWorldMapFile(this)) { @Override public boolean supportsTile(Tile tile) { // Example low res world map has sufficient detail up to zoom level 7 return tile.zoomLevel <= 10 && super.supportsTile(tile); } }; multiMapDataStore = new MultiMapDataStore(MultiMapDataStore.DataPolicy.RETURN_ALL); MapFile mapFile1 = (MapFile) getMapFile1(); mapFile1.restrictToZoomRange((byte) 8, Byte.MAX_VALUE); multiMapDataStore.addMapDataStore(mapFile1, true, true); multiMapDataStore.addMapDataStore(getMapFile2(), false, false); super.onCreate(savedInstanceState); } }