public class SetLayerInfoService
extends java.lang.Object
创建地图的临时图层服务
限定符和类型 | 类和说明 |
---|---|
static class |
SetLayerInfoService.SetLayersInfoEventListener |
构造器和说明 |
---|
SetLayerInfoService(java.lang.String url)
构造函数。
|
限定符和类型 | 方法和说明 |
---|---|
void |
processTempLayersAdd(SetLayerInfoService.SetLayersInfoEventListener listener, Layer layer)
创建临时图层
|
void |
processTempLayersUpdate(SetLayerInfoService.SetLayersInfoEventListener listener, Layer layer, java.lang.String resourceID)
更新指定的临时图层
|
void |
setTimeout(int timeout)
用户自定义超时时间。
|
public SetLayerInfoService(java.lang.String url)
构造函数。
url
- 地图服务的根地址public void setTimeout(int timeout)
用户自定义超时时间。
timeout
- 用户自定义超时时间。若用户不设置,则使用默认超时间为5秒。0代表无限,即代表不设置超时限制。单位默认为秒。public void processTempLayersAdd(SetLayerInfoService.SetLayersInfoEventListener listener, Layer layer)
创建临时图层
listener
- 创建临时图层监听器layer
- 创建临时图层的图层信息public void processTempLayersUpdate(SetLayerInfoService.SetLayersInfoEventListener listener, Layer layer, java.lang.String resourceID)
更新指定的临时图层
listener
- 更新临时图层监听器layer
- 更新临时图层的图层信息resourceID
- 指定临时图层的id