ole
Version:
OpenLayers Editor
35 lines (34 loc) • 1.01 kB
TypeScript
export default DrawControl;
/**
* Control for drawing features.
* @extends {Control}
* @alias ole.DrawControl
*/
declare class DrawControl extends Control {
/**
* @param {Object} [options] Tool options.
* @param {string} [options.type] Geometry type ('Point', 'LineString', 'Polygon',
* 'MultiPoint', 'MultiLineString', 'MultiPolygon' or 'Circle').
* Default is 'Point'.
* @param {Object} [options.drawInteractionOptions] Options for the Draw interaction (ol/interaction/Draw).
* @param {ol.style.Style.StyleLike} [options.style] Style used for the draw interaction.
*/
constructor(options?: {
type?: string | undefined;
drawInteractionOptions?: any;
style?: any;
} | undefined);
/**
* @type {ol.interaction.Draw}
*/
drawInteraction: ol.interaction.Draw;
/**
* @inheritdoc
*/
activate(): void;
/**
* @inheritdoc
*/
deactivate(silent: any): void;
}
import Control from './control';