TileLoader/TileDataSource: add cancel() method
- used to force closing sockets when changing theme or tilesource
This commit is contained in:
@@ -1,34 +0,0 @@
|
||||
package org.oscim.layers;
|
||||
|
||||
import org.oscim.layers.tile.MapTile;
|
||||
import org.oscim.layers.tile.TileLoader;
|
||||
import org.oscim.layers.tile.bitmap.BitmapTileLayer;
|
||||
import org.oscim.map.Map;
|
||||
import org.oscim.tiling.source.bitmap.BitmapTileSource;
|
||||
|
||||
public class JeoTileLayer extends BitmapTileLayer {
|
||||
|
||||
public JeoTileLayer(Map map, BitmapTileSource tileSource) {
|
||||
super(map, tileSource);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected TileLoader createLoader() {
|
||||
return new TileLoader(this.getManager()) {
|
||||
|
||||
@Override
|
||||
public void cleanup() {
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
protected boolean loadTile(MapTile tile) {
|
||||
// TODO Auto-generated method stub
|
||||
return false;
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
@@ -61,9 +61,15 @@ public class JeoTileSource extends TileSource {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void destroy() {
|
||||
public void dispose() {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void cancel() {
|
||||
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user