Class: PictureFrame

PictureFrame

自定义图片对象。

new PictureFrame(path, position, options)

Usage
// 浏览器
<script type="text/javascript" src="../../web/libs/plotting/leaflet/11.3.0/iclient-plot-leaflet-es6.min.js"></script>
<script>
  new SuperMap.Plot.PictureFrame(path, position, options);
  
  
</script>

// ES6 Import
import { PictureFrame } from '../../public/iclient-plot/iclient-plot-leaflet-es6.min.js';

new PictureFrame(path, position, options);

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

图片路径。

position Position

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

options Object

自定义图片参数。

Name Type Description
offsetX number 可选

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

offsetY number 可选

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

width number 可选

自定义图片的宽度。

height number 可选

自定义图片的高度。

Members

heightnumber

图片高度,单位是像素。

offsetXnumber

图片在X方向的偏移量,单位是像素。

offsetYnumber

图片在Y方向的偏移量, 单位是像素。

pathString

图片路径。

positionPosition

图片相对标号的位置。

widthnumber

图片宽度, 单位是像素。

Methods

clone(){PictureFrame}

common/plot/PictureFrame.js, line 79

克隆图形对象。

Returns:
Type Description
PictureFrame 克隆后的图形对象。

destroy()

common/plot/PictureFrame.js, line 66

销毁图形对象数据。

parseSymbolData(){PictureFrame}

common/plot/PictureFrame.js, line 114

解析图形对象数据。

Returns:
Type Description
PictureFrame 图形对象数据。

setSymbolData(){Object}

common/plot/PictureFrame.js, line 97

设置图形对象数据。

Returns:
Type Description
Object 图形对象数据。