public class LayersFilterService
extends java.lang.Object
根据图层显示过滤条件,创建或更新临时图层的类 创建或更新的结果将通过监听器的回调函数LayersFilterService.LayersFilterListener
返回 设置某些图层可见,可参考com.supermap.android.maps.LayerView#setLayersID()
,通过其设置的图层就可以显示,其他图层不显示
限定符和类型 | 类和说明 |
---|---|
static class |
LayersFilterService.LayersFilterListener
根据图层过滤条件创建或更新临时图层的监听器
|
构造器和说明 |
---|
LayersFilterService(java.lang.String url)
构造函数。
|
限定符和类型 | 方法和说明 |
---|---|
void |
createTempLayer(java.util.Map<java.lang.Integer,java.lang.String> filterMap)
根据显示过滤条件, 创建一个临时图层; 显示过滤条件是有地图中的图层索引和过滤条件的键值对
|
void |
setLayersFilterListener(LayersFilterService.LayersFilterListener listener)
设置图层显示过滤监听器, 通过设置的listener获得服务创建或更新临时图层的结果
|
void |
updateTempLayer(java.lang.String resourceID, java.util.Map<java.lang.Integer,java.lang.String> filterMap)
根据显示过滤条件, 更新指定ID的临时图层
|
public LayersFilterService(java.lang.String url)
构造函数。
url
- 地图服务的根地址public void setLayersFilterListener(LayersFilterService.LayersFilterListener listener)
listener
- 图层显示过滤监听器public void createTempLayer(java.util.Map<java.lang.Integer,java.lang.String> filterMap)
filterMap
- 图层索引和过滤条件的键值对public void updateTempLayer(java.lang.String resourceID, java.util.Map<java.lang.Integer,java.lang.String> filterMap)
resourceID
- 临时图层IDfilterMap
- 图层索引和过滤条件的键值对