MousePromptWidget
容器元素
关系
Extends
MousePromptWidget Extends BaseWidget
继承: BaseWidget
构造函数
MousePromptWidget
构造函数
new MousePromptWidget(scene, props?)
参数
- scene:
IScene - props?:
MousePromptProps
返回:MousePromptWidget MousePromptWidget对象
属性
container
容器元素
container?: string | HTMLElement
类型: string | HTMLElement
hide
隐藏方法
hide: (
类型: (
name
小部件名称
name: string
类型: string
onAdd
添加到地图时的回调
onAdd: (
类型: (
onRemove
移除时的回调
onRemove: (
类型: (
onUpdate
更新时的回调
onUpdate: (
类型: (
position
位置
position: string
类型: string
props
props?: MousePromptProps
类型: MousePromptProps
scene
所属场景实例
scene: IScene
类型: IScene
show
显示方法
show: (
类型: (
方法
setContent
修改text
setContent(e): void
参数
- e:
string|HTMLElement
返回:void
view
渲染视图方法,需由子类实现
view(): MousePrompt
返回:MousePrompt

BIMFlux AI
