new Plotting(map, serverUrl, options)
Usage
// 浏览器
<script type="text/javascript" src="../../web/libs/plotting/leaflet/11.2.0/iclient-plot-leaflet-es6.min.js"></script>
<script>
var plotting = L.supermap.plotting.getControl(map, serverUrl);
</script>
// ES6 Import
import { Plotting } from '../../public/iclient-plot/iclient-plot-leaflet-es6.min.js';
new Plotting(map, serverUrl, options);
leaflet/plot/Plotting.js, line 14
Name | Type | Description | ||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
map |
L.Map |
地图。 |
||||||||||||||||||||||||||
serverUrl |
string |
标绘服务地址。 |
||||||||||||||||||||||||||
options |
Object |
标绘图层参数。
|
Methods
-
destroy()
leaflet/plot/Plotting.js, line 162 -
销毁该类,释放相关资源。
-
getClientID(){string}
leaflet/plot/Plotting.js, line 255 -
获取客户端用户的ID
Returns:
Type Description string 返回客户端用户的ID。 -
getDefaultStyle(){DefaultStyle}
leaflet/plot/Plotting.js, line 201 -
获取缺省属性管理接口
Returns:
Type Description DefaultStyle 返回缺省属性对象。 -
getDPI(){number}
leaflet/plot/Plotting.js, line 291 -
获取DPI
Returns:
Type Description number 返回DPI。 -
getFeatureByUuid(uuid){PlottingObject}
leaflet/plot/Plotting.js, line 391 -
根据用户定义的唯一ID获取指定的feature
Name Type Description uuid
string 用户定义的唯一ID。
Returns:
Type Description PlottingObject 返回feature -
getGOAnimationManager(){GOAnimationManager}
leaflet/plot/Plotting.js, line 237 -
获取动画管理器
Returns:
Type Description GOAnimationManager 返回动画管理对象。 -
getPlotMapManager(){PlotMapManager}
leaflet/plot/Plotting.js, line 219 -
获取标绘图管理接口
Returns:
Type Description PlotMapManager 返回标绘图管理对象。 -
getSitDataManager(){SitDataManager}
leaflet/plot/Plotting.js, line 210 -
获取态势数据管理接口
Returns:
Type Description SitDataManager 返回态势数据管理对象。 -
getSpecialEffectManager(){SpecialEffectManager}
leaflet/plot/Plotting.js, line 246 -
获取特效管理器
Returns:
Type Description SpecialEffectManager 返回特效管理对象。 -
getSymbolLibManager(){SymbolLibManager}
leaflet/plot/Plotting.js, line 228 -
获取标号库管理器
Returns:
Type Description SymbolLibManager 返回标号库管理对象。 -
getTouchMode(){boolean}
leaflet/plot/Plotting.js, line 273 -
获取触屏模式标志
Returns:
Type Description boolean 返回触屏模式标志。 -
getTransManager(){TransactionManager}
leaflet/plot/Plotting.js, line 309 -
获取标号编辑信息列表管理类
Returns:
Type Description TransactionManager 返回标号编辑信息列表管理对象。 -
setClientID(clientID)
leaflet/plot/Plotting.js, line 264 -
设置客户端用户的ID
Name Type Description clientID
string 客户端用户的ID。
-
setDPI(dpi)
leaflet/plot/Plotting.js, line 300 -
设置DPI
Name Type Description dpi
number DPI。
-
setMap(map)
leaflet/plot/Plotting.js, line 318 -
设置地图
Name Type Description map
Map 地图
-
setMap(){Map}
leaflet/plot/Plotting.js, line 342 -
获取地图
Returns:
Type Description Map map - 地图 -
setOptions(options)
leaflet/plot/Plotting.js, line 376 -
设置标绘服务地址
Name Type Description options
Object 标绘服务地址。
-
setPlotUrl(plotUrl)
leaflet/plot/Plotting.js, line 350 -
设置标绘服务地址
Name Type Description plotUrl
string 标绘服务地址。
-
setTouchMode(touchMode)
leaflet/plot/Plotting.js, line 282 -
设置触屏模式标志
Name Type Description touchMode
boolean 触屏模式标志。