cleanup: VectorTileLoader
This commit is contained in:
parent
5ad631f1ea
commit
f929c15e2d
@ -140,9 +140,7 @@ public class VectorTileLoader extends TileLoader implements IRenderTheme.Callbac
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void setDataSource(ITileDataSource dataSource) {
|
public void setDataSource(ITileDataSource dataSource) {
|
||||||
if (mTileDataSource != null)
|
cleanup();
|
||||||
mTileDataSource.destroy();
|
|
||||||
|
|
||||||
mTileDataSource = dataSource;
|
mTileDataSource = dataSource;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user