@uiw/react-baidu-map-control
Version:
Baidu Map control Components for React.
22 lines (21 loc) • 732 B
TypeScript
import React from 'react';
import { OverlayProps } from '@uiw/react-baidu-map-map';
export * from './useControl';
export interface ControlProps extends OverlayProps {
/**
* 控件默认的停靠位置。自定义控件时需要提供此属性,作为控件的默认停靠位置
*/
anchor?: BMap.ControlAnchor;
/**
* 控件默认的位置偏移值。自定义控件时需要提供此属性,作为控件的默认偏移位置
*/
offset?: BMap.Size;
/**
* 自定义 DOM 元素。
*/
children?: React.ReactNode;
}
declare const _default: React.ForwardRefExoticComponent<ControlProps & React.RefAttributes<ControlProps & {
control?: BMap.Control;
}>>;
export default _default;