Tile decoders refactoring

This commit is contained in:
Emux
2019-10-01 18:41:13 +03:00
parent 1294ff9fea
commit c20922b5f5
11 changed files with 19 additions and 19 deletions

View File

@@ -78,6 +78,6 @@ public class OverpassTileSource extends UrlTileSource {
@Override
public ITileDataSource getDataSource() {
return new OverzoomTileDataSource(new UrlTileDataSource(this, new OverpassTileDecoder(), getHttpEngine()), mOverZoom);
return new OverzoomTileDataSource(new UrlTileDataSource(this, new TileDecoder(), getHttpEngine()), mOverZoom);
}
}

View File

@@ -39,14 +39,14 @@ import java.io.InputStream;
import static org.oscim.core.MercatorProjection.latitudeToY;
import static org.oscim.core.MercatorProjection.longitudeToX;
public class OverpassTileDecoder implements ITileDecoder {
public class TileDecoder implements ITileDecoder {
private final MapElement mMapElement;
private ITileDataSink mTileDataSink;
private double mTileY, mTileX, mTileScale;
public OverpassTileDecoder() {
public TileDecoder() {
mMapElement = new MapElement();
mMapElement.layer = 5;
}