UNPKG

react-amap-v2

Version:

高德地图 v2.0 react 组件

26 lines (25 loc) 845 B
import React from 'react'; declare type SupportType = 'circle' | 'rectangle' | 'polyline' | 'polygon' | 'editor' | 'trash'; interface OverlayEditorValue { type: SupportType; path?: AMap.Vector2[] | AMap.Vector2[][] | AMap.Vector2[][][]; center?: AMap.Vector2; radius?: number; bounds?: { southWest: AMap.Vector2; northEast: AMap.Vector2; }; } interface OverlayEditorProps extends AMap.OverlayOptions { disableCircle?: boolean; disableRectangle?: boolean; disablePolyline?: boolean; disablePolygon?: boolean; disableTrash?: boolean; iconColors?: string[]; iconBarStyle?: React.CSSProperties; value: OverlayEditorValue[]; onChange(value: OverlayEditorValue[]): void; } export declare const OverlayEditor: React.FC<OverlayEditorProps>; export {};