rlayers
Version:
React Components for OpenLayers
21 lines • 843 B
TypeScript
import React from 'react';
import { Control as Control } from 'ol/control';
import { RContextType } from '../context';
import { default as RControlBase, RControlOptions, RControlProps } from './RControlBase';
/** A custom control that can contain an HTMLElement
*
* All provided children will be rendered as an OpenLayers control
*
* Requires an `RMap` context
*
* [See this for an example](https://mmomtchev.github.io/rlayers/#/controls)
*/
export default class RCustom extends RControlBase<RControlProps, Record<string, never>> {
ol: Control;
targetRef: React.RefObject<HTMLDivElement>;
constructor(props: Readonly<RControlProps>, context?: React.Context<RContextType>);
componentDidMount(): void;
toOLProps(props: RControlProps): RControlOptions;
render(): JSX.Element;
}
//# sourceMappingURL=RCustom.d.ts.map