Options
All
  • Public
  • Public/Protected
  • All
Menu

地图鼠标样式控制插件类

Hierarchy

Index

Constructors

constructor

Properties

Private _cursorType

_cursorType: MapCursorType = 'default'

鼠标样式

Protected map_

map_: IMap

地图对象

Protected view_

view_: IView

视图对象

Static Private Readonly _MapCursorType

_MapCursorType: { clear: string; default: string; draw: string; pan: string; panning: string; wait: string; zoomin: string; zoomout: string } = ...

鼠标样式集

Type declaration

  • clear: string
  • default: string
  • draw: string
  • pan: string
  • panning: string
  • wait: string
  • zoomin: string
  • zoomout: string

Accessors

cursorType

pluginName

  • get pluginName(): string

Methods

fire

  • fire<K>(name: K, data?: { change: { type: MapCursorType } }[K]): void
  • 触发监听函数

    Type parameters

    • K: "change"

    Parameters

    • name: K

      监听函数名

    • Optional data: { change: { type: MapCursorType } }[K]

      数据

    Returns void

installPlugin

off

  • off<K>(name: K, callback?: IObserverCallback<{ change: { type: MapCursorType } }[K], K, MapCursor, void>): void
  • 移除监听函数

    Type parameters

    • K: "change"

    Parameters

    • name: K

      监听类型名

    • Optional callback: IObserverCallback<{ change: { type: MapCursorType } }[K], K, MapCursor, void>

      监听回调函数(不指定者移除所有)

    Returns void

on

  • on<K>(name: K, callback: IObserverCallback<{ change: { type: MapCursorType } }[K], K, MapCursor, void>): IObserverHandler
  • 绑定监听函数

    Type parameters

    • K: "change"

    Parameters

    • name: K

      监听类型名

    • callback: IObserverCallback<{ change: { type: MapCursorType } }[K], K, MapCursor, void>

      监听回调函数

    Returns IObserverHandler

setCursor

Generated using TypeDoc