@uiw/react-baidu-map-geolocation-control
Version:
Baidu Map geolocation-control Components for React.
21 lines (20 loc) • 689 B
TypeScript
import React from 'react';
import { OverlayProps } from '@uiw/react-baidu-map-map';
export * from './useGeolocationControl';
export interface GeolocationControlProps extends OverlayProps, BMap.GeolocationControlOptions {
/**
* 定位成功后触发此事件
*/
onLocationSuccess?(result: {
point: BMap.Point;
addressComponent: BMap.AddressComponent;
}): void;
/**
* 定位失败后触发此事件
*/
onLocationError?(error: {
statusCode: BMap.StatusCode;
}): void;
}
declare const _default: React.ForwardRefExoticComponent<GeolocationControlProps & React.RefAttributes<GeolocationControlProps>>;
export default _default;