@uiw/react-amap-geolocation
Version:
鹰眼控件,用于显示缩略地图,显示于地图右下角,可以随主图的视口变化而变化,也可以配置成固定位置实现类似于南海附图的效果。
10 lines (9 loc) • 404 B
TypeScript
/// <reference types="@uiw/react-amap-types" />
/// <reference types="react" />
import { GeolocationProps } from '.';
export interface UseGeolocation extends GeolocationProps {
}
export declare const useGeolocation: (props?: UseGeolocation) => {
geolocation: AMap.Geolocation | undefined;
setGeolocation: import("react").Dispatch<import("react").SetStateAction<AMap.Geolocation | undefined>>;
};