public abstract static class LayersFilterService.LayersFilterListener
extends java.lang.Object
构造器和说明 |
---|
LayersFilterService.LayersFilterListener() |
限定符和类型 | 方法和说明 |
---|---|
abstract void |
onCreated(java.util.List<java.lang.String> layerIDs)
当请求服务器创建临时图层成功时调用, 并返回创建的临时图层的图层ID集合,通常一次只创建一个临时图层.
|
abstract void |
onFailed(java.lang.String failMsg)
当创建或更新临时图层失败时调用,并返回错误信息
|
abstract void |
onUpdated(java.lang.String layerID)
当更新临时图层成功时调用, 并返回被更新的临时图层的ID 在回调中清除缓存
com.supermap.android.maps.LayerView#clearCache(false) 和刷新地图MapView.refresh() 以便更新当前显示 |
public abstract void onCreated(java.util.List<java.lang.String> layerIDs)
根据获得的图层ID, 可以创一个新的LayerView来显示这个图层。如:
String layerID = layerIDs.get(0); LayerView layer = new LayerView(); layer.setURL(url); layer.setLayersID(layerID); mapView.addLayer(layer); mapView.refresh();
layerIDs
- 临时图层ID集合public abstract void onFailed(java.lang.String failMsg)
failMsg
- 错误信息public abstract void onUpdated(java.lang.String layerID)
在回调中清除缓存com.supermap.android.maps.LayerView#clearCache(false)
和刷新地图MapView.refresh()
以便更新当前显示
layerID
- 临时图层ID