我将相同的瓦片(Mapbox)加载到OSmdroid中,但是当我在Web上对其进行修改时,它会在我的应用程序中发生更改,但以前的地图仍然保留在缓存中,并逐渐被新地图替换。
我想知道如何以编程方式删除缓存,以便它可以正常加载瓦片。
我已经得到正确加载它的代码:
private void loadMap() {
String html = "http://a.tiles.mapbox.com/v3/myUsername.map-f1rhoycw/";
String name = "500x300";
XYTileSource freemap = new XYTileSource(name, null, 0, 16, 256, ".png", html);
map.setTileSource(freemap);
mapController = map.getController();
mapController.setZoom(16);
map.setMultiTouchControls(true);
}