map.registerGeofence
注册地理围栏。
权限: [scope.location]
需引入
MapKit
,且在>=3.0.1
版本才可使用
Use in Ray
// @ray-js/ray >=1.1.0
import { map } from '@ray-js/ray';
const { registerGeofence } = map;
参数
Object object
属性 | 类型 | 默认值 | 必填 | 说明 |
---|---|---|---|---|
geoTitle | string |
否 | 地理围栏名称 | |
longitude | number |
否 | 经度 | |
latitude | number |
否 | 纬度 |