Class: PictureFrame

SuperMap.Plot.PictureFrame

自定义图片对象。

new SuperMap.Plot.PictureFrame(path, position, options)

common/plot/PictureFrame.js, line 5
Name Type Description
path string

图片路径。

position SuperMap.Plot.Position

自定义图片相对标号的位置,上、下、左、右。

options Object

自定义图片参数。

Name Type Description
offsetX float 可选

自定义图片在位置点X方向的偏移量。

offsetY float 可选

自定义图片在位置点Y方向的偏移量。

width float 可选

自定义图片的宽度。

height float 可选

自定义图片的高度。

Members

heightint

生命值高度,单位是像素。

offsetXint

生命值在X方向的偏移量,单位是像素。

offsetYint

生命值在Y方向的偏移量, 单位是像素。

生命值相对标号的位置。

volumedouble

生命值比例,取值为[0-1]。

widthint

生命值宽度, 单位是像素。

Methods

clone(){SuperMap.Plot.PictureFrame}

common/plot/PictureFrame.js, line 77

克隆对象标注对象。

Returns:
Type Description
SuperMap.Plot.PictureFrame 克隆后的对象标注对象。

destroy()

common/plot/PictureFrame.js, line 64

销毁图形对象数据。

parseSymbolData(){SuperMap.Plot.PictureFrame}

common/plot/PictureFrame.js, line 112

解析对象标注数据。

Returns:
Type Description
SuperMap.Plot.PictureFrame 解析对象标注数据。

setSymbolData(){Object}

common/plot/PictureFrame.js, line 95

设置对象标注数据。

Returns:
Type Description
Object 设置对象标注数据。