hoc
#
createLayer创建 maptalks layer HOC, eg: ImageLayer, WMSLayer
#
函数签名declare function createLayer< P extends LayerOptions, T extends Layer>(Component: FC<P>): ForwardRefExoticComponent<PropsWithoutRef<P> & RefAttributes<T>>
#
参数- P component Props 继承 maptalks 的 LayerOption
- T Ref current对象, 继承 maptalks Layer
#
createGeometry创建 maptalks geometry HOC, eg: Polygon, Circle
#
函数签名export declare function createGeometry< P extends GeometryProps, T extends Geometry>(Component: FC<P>): ForwardRefExoticComponent<PropsWithoutRef<P> & RefAttributes<T>>;
#
参数- P component Props 继承 @react-maptalks/core 的 GeometryProps
- T Ref current对象, 继承 maptalks Geometry
#
createUIComponent创建 maptalks uiComponent HOC, eg: InfoWindow, Tooltip
#
函数签名export declare function createUIComponent< P extends UIComponentProps, T extends ui.UIComponent>(Component: FC<P>): ForwardRefExoticComponent<PropsWithoutRef<P> & RefAttributes<T>>;
#
参数- P component Props 继承 @react-maptalks/core 的 UIComponentProps
- T Ref current对象, 继承 maptalks ui.UIComponent
#
createControl创建 maptalks control HOC, eg: Zoom, Overview
#
函数签名export declare function createControl< P extends ControlProps, T extends control.Control>(Component: FC<P>): ForwardRefExoticComponent<PropsWithoutRef<P> & RefAttributes<T>>;
#
参数- P component Props 继承 @react-maptalks/core 的 ControlProps
- T Ref current对象, 继承 maptalks control.Control