Options
All
  • Public
  • Public/Protected
  • All
Menu

Module hooks/maptools.hooks

Index

Functions

default

  • default(mapTools: MapTools, toolKeys?: string[]): [Ref<string>, string[]]
  • 地图工具链钩子

    Parameters

    • mapTools: MapTools

      地图工具链插件对象

    • toolKeys: string[] = []

      当前激活的工具对应Key值

    Returns [Ref<string>, string[]]

useCreateTool

  • useCreateTool(mapTools: MapTools, toolObject: BaseTool<unknown>, toolKey?: string): [() => void, () => void, string]
  • 创建自定义工具方法钩子

    Parameters

    • mapTools: MapTools

      地图工具链插件对象

    • toolObject: BaseTool<unknown>

      工具对象

    • Optional toolKey: string

      工具Key值,默认生成GUID

    Returns [() => void, () => void, string]

Generated using TypeDoc