L.supermap.plotting.picture(libID, code, latlngs, options)
leaflet/layer/Picture.js, line 4
Name | Type | Description | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
libID |
number |
标号的ID。 |
||||||||||||||||||||||||||||
code |
number |
标号的code。 |
||||||||||||||||||||||||||||
latlngs |
Array.<L.LatLng> |
标号位置点。 |
||||||||||||||||||||||||||||
options |
Object |
标号参数。
|
Extends
- L.supermap.plotting.graphicObject
Methods
-
getBloodVolumes(){Array.<SuperMap.Plot.BloodVolume>}
leaflet/layer/Picture.js, line 97 -
获取血量值对象数组。
Returns:
Type Description Array.<SuperMap.Plot.BloodVolume> 返回血量值对象数组,修改后需要调用redraw重绘。 -
getBounds(){L.LatLngBounds}
leaflet/layer/Picture.js, line 202 -
获得几何图形的边界。如果没有设置边界,可通过计算获得。
Returns:
Type Description L.LatLngBounds 几何对象的边界。 -
getPath(){string}
leaflet/layer/Picture.js, line 70 -
获取图片路径。
Returns:
Type Description string 返回图片路径。 -
getSymbolTexts(){Array.<SuperMap.Plot.SymbolText>}
leaflet/layer/Picture.js, line 106 -
获取标牌对象数组。
Returns:
Type Description Array.<SuperMap.Plot.SymbolText> 返回标牌对象数组,修改后需要调用redraw重绘。 -
move(lat, lng)
leaflet/layer/Picture.js, line 729 -
沿着x、y轴的正方向上按照给定的位移移动几何图形,move 不仅改变了几何图形的位置并且清理了边界缓存。
Name Type Description lat
number y轴正方向上移动的距离。
lng
number x轴正方向上移动的距离。
-
setPath(path, width, height)
leaflet/layer/Picture.js, line 79 -
设置路片路径及大小。
Name Type Description path
string 图片路径。
width
int 图片宽度。
height
int 图片高度。
-
setRotate(rotateValue)
leaflet/layer/Picture.js, line 133 -
设置点标号的旋转角度。
Name Type Description rotateValue
number 点标号的旋转角度。
-
setScale(scaleValue)
leaflet/layer/Picture.js, line 115 -
设置点标号的比例值。
Name Type Description scaleValue
number 点标号的比例值。