Skip to content

覆盖物方法调用

调用方法

callOverlayFunction(option)

option

名称类型说明
tagstring覆盖物标识,可传数组1.0.15
functionstring覆盖物方法名称
paramany参数,覆盖物的方法参数都只有一个
paramTypestring特殊参数类型,需要转的,可选值:'lngLat' 、 'lngLats' 、 'icon' 、 'point'
successfunction调用成功回调
failfunction调用失败回调

示例代码

javascript
TDTRenderRef.value.callOverlayFunction({
  tag: '001',
  function: 'getLngLat'
});

贡献者

mosowe

文档版本 v1.0.1