import * as L from 'leaflet'; import 'leaflet/dist/leaflet.css'; import { AbstractLayerTool, IMapEvent, IMapForm, IMapFormControl, IMapToolInitProps } from 'geovisto'; import { IMapTheme } from 'geovisto-themes'; import IImageLayerTool from '../../types/tool/IImageLayerTool'; import IImageLayerToolConfig from '../../types/tool/IImageLayerToolConfig'; import IImageLayerToolDefaults from '../../types/tool/IImageLayerToolDefaults'; import IImageLayerToolState from '../../types/tool/IImageLayerToolState'; import IImageLayerToolProps from '../../types/tool/IImageLayerToolProps'; /** * This class represents Image layer tool. */ declare class ImageLayerTool extends AbstractLayerTool implements IImageLayerTool, IMapFormControl { private themesToolAPI; private mapForm; /** * It creates a new tool with respect to the props. * * @param props */ constructor(props?: IImageLayerToolProps); /** * It creates a copy of the uninitialized tool. */ copy(): IImageLayerTool; /** * Help function which returns the props given by the programmer. */ getProps(): IImageLayerToolProps; /** * It returns default values of the state properties. */ getDefaults(): IImageLayerToolDefaults; /** * It creates new defaults of the layer tool. */ protected createDefaults(): IImageLayerToolDefaults; /** * It returns the layer tool state. */ getState(): IImageLayerToolState; /** * It creates new defaults of the layer tool. */ protected createState(): IImageLayerToolState; /** * It returns a sidebar tab with respect to the configuration. */ getMapForm(): IMapForm; /** * It creates new tab control. */ protected createMapForm(): IMapForm; /** * Help function which acquires and returns the themes tool if available. */ private getThemesTool; /** * Overrides the super method. * * @param initProps */ initialize(initProps: IMapToolInitProps): this; /** * It creates layer items. */ protected createLayerItems(): L.Layer[]; /** * Creates new image layer */ protected createImageLayer(url: string, bounds: L.LatLngBoundsLiteral): L.ImageOverlay; /** * This function is called when a custom event is invoked. * * @param event */ handleEvent(event: IMapEvent): void; /** * This function updates theme used in the tool. */ protected onThemeChange(theme: IMapTheme): void; } export default ImageLayerTool;