rlayers
Version:
React Components for OpenLayers
31 lines • 1.04 kB
TypeScript
import React from 'react';
import { FullScreen } from 'ol/control';
import { Options } from 'ol/control/FullScreen';
import { RContextType } from '../context';
import { default as RControlBase, RControlProps } from './RControlBase';
/**
* @propsfor RFullScreen
*/
export interface RFullScreenProps extends RControlProps {
/** A new HTML target for the map after switching to full-screen,
* can be used for CSS customization
*/
source?: HTMLElement | string;
/** The button label */
label?: string;
/** The button label when active */
labelActive?: string;
/** The mouse-over tip */
tipLabel?: string;
}
/**
* A control for switching to full-screen mode
*
* Requires an `RMap` context
* */
export default class RFullScreen extends RControlBase<RFullScreenProps, Record<string, never>> {
ol: FullScreen;
constructor(props: Readonly<RFullScreenProps>, context?: React.Context<RContextType>);
toOLProps(props: RFullScreenProps): Options;
}
//# sourceMappingURL=RFullScreen.d.ts.map