add getter for UrlTileSource.getUrl()
This commit is contained in:
1 parent
9fe4be522a
commit
50e3794cb9
6 files changed
+12
-8
No files matched your search
@@ -30,10 +30,10 @@ public class MapnikVectorTileSource extends UrlTileSource {
|
||||
|
||||
@Override
|
||||
public ITileDataSource getDataSource() {
|
||||
return new UrlTileDataSource(this, new TileDecoder(), new LwHttp(mUrl));
|
||||
return new UrlTileDataSource(this, new TileDecoder(), new LwHttp(getUrl()));
|
||||
}
|
||||
|
||||
protected int formatTilePath(Tile tile, byte[] path, int pos) {
|
||||
public int formatTilePath(Tile tile, byte[] path, int pos) {
|
||||
// url formatter for mapbox streets
|
||||
byte[] hexTable = {
|
||||
'0', '1', '2', '3',
|
||||
|
||||
@@ -35,6 +35,6 @@ public class OSciMap1TileSource extends UrlTileSource {
|
||||
|
||||
@Override
|
||||
public ITileDataSource getDataSource() {
|
||||
return new UrlTileDataSource(this, new TileDecoder(), new LwHttp(mUrl));
|
||||
return new UrlTileDataSource(this, new TileDecoder(), new LwHttp(getUrl()));
|
||||
}
|
||||
}
|
||||
@@ -44,7 +44,7 @@ public class OSciMap2TileSource extends UrlTileSource {
|
||||
|
||||
@Override
|
||||
public ITileDataSource getDataSource() {
|
||||
return new UrlTileDataSource(this, new TileDecoder(), new LwHttp(mUrl));
|
||||
return new UrlTileDataSource(this, new TileDecoder(), new LwHttp(getUrl()));
|
||||
}
|
||||
|
||||
static class TileDecoder extends PbfDecoder {
|
||||
|
||||
Reference in new issue
Block a user