@Override public MapReadResult readPoiData(Tile upperLeft, Tile lowerRight) { switch (this.dataPolicy) { case RETURN_FIRST: for (MapDataStore mdb : mapDatabases) { if (mdb.supportsTile(upperLeft)) { return mdb.readPoiData(upperLeft, lowerRight); } } return null; case RETURN_ALL: return readPoiData(upperLeft, lowerRight, false); case DEDUPLICATE: return readPoiData(upperLeft, lowerRight, true); } throw new IllegalStateException("Invalid data policy for multi map database"); }
@Override public MapReadResult readPoiData(Tile tile) { switch (this.dataPolicy) { case RETURN_FIRST: for (MapDataStore mdb : mapDatabases) { if (mdb.supportsTile(tile)) { return mdb.readPoiData(tile); } } return null; case RETURN_ALL: return readPoiData(tile, false); case DEDUPLICATE: return readPoiData(tile, true); } throw new IllegalStateException("Invalid data policy for multi map database"); }
@Override public MapReadResult readPoiData(Tile upperLeft, Tile lowerRight) { switch (this.dataPolicy) { case RETURN_FIRST: for (MapDataStore mdb : mapDatabases) { if (mdb.supportsTile(upperLeft)) { return mdb.readPoiData(upperLeft, lowerRight); } } return null; case RETURN_ALL: return readPoiData(upperLeft, lowerRight, false); case DEDUPLICATE: return readPoiData(upperLeft, lowerRight, true); } throw new IllegalStateException("Invalid data policy for multi map database"); }
@Override public MapReadResult readPoiData(Tile tile) { switch (this.dataPolicy) { case RETURN_FIRST: for (MapDataStore mdb : mapDatabases) { if (mdb.supportsTile(tile)) { return mdb.readPoiData(tile); } } return null; case RETURN_ALL: return readPoiData(tile, false); case DEDUPLICATE: return readPoiData(tile, true); } throw new IllegalStateException("Invalid data policy for multi map database"); }