Skip to content

m-gis核心库 v0.4.4


m-gis核心库 / ScanCirclePrimitive

类: ScanCirclePrimitive ​

定义于: overlay/primitive/ScanCirclePrimitive.ts:25

ScanCirclePrimitive 类,用于绘制动态扫描圆

const layer = new PrimitiveLayer().addToViewer(this.$viewer) const scanCircle = new ScanCirclePrimitive( new Position(118.6354584, 32.08710259, 10), 30).setStyle({ color: Cesium.Color.RED, speed: 30 }) layer.addOverlay(scanCircle)

继承 ​

  • PrimitiveOverlay

构造函数 ​

构造函数 ​

new ScanCirclePrimitive(position, radius, options?): ScanCirclePrimitive

定义于: overlay/primitive/ScanCirclePrimitive.ts:33

参数 ​

position ​

Position

坐标

radius ​

number

半径

options? ​

any = {}

返回 ​

ScanCirclePrimitive

重写了 ​

Overlay.constructor

属性 ​

_attr ​

_attr: any

定义于: overlay/PrimitiveOverlay.ts:19

继承自 ​

Overlay._attr


_bid ​

_bid: any

定义于: overlay/PrimitiveOverlay.ts:11

继承自 ​

Overlay._bid


_delegate ​

_delegate: any

定义于: overlay/PrimitiveOverlay.ts:13

继承自 ​

Overlay._delegate


_height ​

_height: number

定义于: overlay/primitive/ScanCirclePrimitive.ts:27


_id ​

_id: any

定义于: overlay/PrimitiveOverlay.ts:10

继承自 ​

Overlay._id


_inBatch ​

_inBatch: boolean

定义于: overlay/PrimitiveOverlay.ts:12

继承自 ​

Overlay._inBatch


_layer ​

_layer: Layer | undefined

定义于: overlay/PrimitiveOverlay.ts:16

继承自 ​

Overlay._layer


_materialType ​

_materialType: any

定义于: overlay/primitive/ScanCirclePrimitive.ts:28


_options ​

_options: any

定义于: overlay/PrimitiveOverlay.ts:23

继承自 ​

Overlay._options


_outline ​

_outline: any

定义于: overlay/PrimitiveOverlay.ts:22

继承自 ​

Overlay._outline


_overlayEvent ​

_overlayEvent: OverlayEvent

定义于: overlay/PrimitiveOverlay.ts:20

继承自 ​

Overlay._overlayEvent


_position ​

_position: any

定义于: overlay/PrimitiveOverlay.ts:14

继承自 ​

Overlay._position


_positions ​

_positions: any

定义于: overlay/PrimitiveOverlay.ts:15

继承自 ​

Overlay._positions


_radius ​

_radius: number

定义于: overlay/primitive/ScanCirclePrimitive.ts:26


_show ​

_show: boolean

定义于: overlay/PrimitiveOverlay.ts:17

继承自 ​

Overlay._show


_style ​

_style: any

定义于: overlay/PrimitiveOverlay.ts:18

继承自 ​

Overlay._style


type ​

type: any

定义于: overlay/PrimitiveOverlay.ts:21

继承自 ​

Overlay.type

访问器 ​

attr ​

Getter 签名 ​

get attr(): any

定义于: overlay/PrimitiveOverlay.ts:82

返回 ​

any

Setter 签名 ​

set attr(attr): void

定义于: overlay/PrimitiveOverlay.ts:78

覆盖物的额外属性设置

参数 ​
attr ​

any

返回 ​

void

继承自 ​

Overlay.attr


delegate ​

Getter 签名 ​

get delegate(): any

定义于: overlay/PrimitiveOverlay.ts:100

覆盖物的代理对象

返回 ​

any

继承自 ​

Overlay.delegate


id ​

Getter 签名 ​

get id(): any

定义于: overlay/PrimitiveOverlay.ts:57

返回 ​

any

Setter 签名 ​

set id(id): void

定义于: overlay/PrimitiveOverlay.ts:53

设置覆盖物的业务 id

参数 ​
id ​

any

返回 ​

void

继承自 ​

Overlay.id


outline ​

Getter 签名 ​

get outline(): any

定义于: overlay/PrimitiveOverlay.ts:109

outline 代理对象

返回 ​

any

继承自 ​

Overlay.outline


overlayEvent ​

Getter 签名 ​

get overlayEvent(): OverlayEvent

定义于: overlay/PrimitiveOverlay.ts:91

覆盖物的事件对象

返回 ​

OverlayEvent

继承自 ​

Overlay.overlayEvent


overlayId ​

Getter 签名 ​

get overlayId(): any

定义于: overlay/PrimitiveOverlay.ts:45

覆盖物唯一标识

返回 ​

any

继承自 ​

Overlay.overlayId


show ​

Getter 签名 ​

get show(): boolean

定义于: overlay/PrimitiveOverlay.ts:70

返回 ​

boolean

Setter 签名 ​

set show(show): void

定义于: overlay/PrimitiveOverlay.ts:65

覆盖物的可见性

参数 ​
show ​

boolean

返回 ​

void

继承自 ​

Overlay.show

方法 ​

_addHandlerSync() ​

_addHandlerSync(): void

定义于: overlay/PrimitiveOverlay.ts:163

返回 ​

void

继承自 ​

Overlay._addHandlerSync


_setAppearance() ​

_setAppearance(): void

定义于: overlay/primitive/ScanCirclePrimitive.ts:54

返回 ​

void


addToLayer() ​

addToLayer(layer): ScanCirclePrimitive

定义于: overlay/PrimitiveOverlay.ts:232

添加到指定图层

参数 ​

layer ​

any

指定图层

返回 ​

ScanCirclePrimitive

继承自 ​

Overlay.addToLayer


fire() ​

fire(type, params): ScanCirclePrimitive

定义于: overlay/PrimitiveOverlay.ts:272

触发事件

参数 ​

type ​

string

params ​

any

返回 ​

ScanCirclePrimitive

继承自 ​

Overlay.fire


off() ​

off(type, callback, context): ScanCirclePrimitive

定义于: overlay/PrimitiveOverlay.ts:260

注销事件

参数 ​

type ​

string

事件类型

callback ​

any

监听回调

context ​

any

返回 ​

ScanCirclePrimitive

继承自 ​

Overlay.off


on() ​

on(type, callback, context?): ScanCirclePrimitive

定义于: overlay/PrimitiveOverlay.ts:247

注册事件

参数 ​

type ​

string | number

事件类型

callback ​

any

监听回调

context? ​

any

返回 ​

ScanCirclePrimitive

继承自 ​

Overlay.on


remove() ​

remove(): ScanCirclePrimitive

定义于: overlay/PrimitiveOverlay.ts:219

从图层上移出

返回 ​

ScanCirclePrimitive

继承自 ​

Overlay.remove


set() ​

set(): void

定义于: overlay/PrimitiveOverlay.ts:277

返回 ​

void

继承自 ​

Overlay.set


setLabel() ​

setLabel(text, textStyle): ScanCirclePrimitive

定义于: overlay/PrimitiveOverlay.ts:195

设置文字标签

参数 ​

text ​

string

指定文本的属性。支持显式换行符'\ n'。

textStyle ​

any

text 样式

返回 ​

ScanCirclePrimitive

继承自 ​

Overlay.setLabel


setStyle() ​

setStyle(style?): ScanCirclePrimitive

定义于: overlay/primitive/ScanCirclePrimitive.ts:86

设置动画样式

参数 ​

style? ​

any = {}

动画样式

返回 ​

ScanCirclePrimitive

重写了 ​

Overlay.setStyle


getOverlayType() ​

static getOverlayType(type): string | number | undefined

定义于: overlay/PrimitiveOverlay.ts:305

获取 Overlay 类型

参数 ​

type ​

string

返回 ​

string | number | undefined

继承自 ​

Overlay.getOverlayType


registerType() ​

static registerType(type): void

定义于: overlay/PrimitiveOverlay.ts:293

Overlay 类型注册

参数 ​

type ​

string

返回 ​

void

继承自 ​

Overlay.registerType

MGis 地理三维库