ole
Version:
OpenLayers Editor
46 lines (45 loc) • 1.17 kB
TypeScript
export default BufferControl;
/**
* Control for creating buffers.
* @extends {Control}
* @alias ole.BufferControl
*/
declare class BufferControl extends Control {
/**
* @inheritdoc
* @param {Object} [options] Control options.
* @param {number} [options.hitTolerance] Select tolerance in pixels
* (default is 10)
* @param {boolean} [options.multi] Allow selection of multiple geometries
* (default is false).
* @param {ol.style.Style.StyleLike} [options.style] Style used when a feature is selected.
*/
constructor(options?: {
hitTolerance?: number | undefined;
multi?: boolean | undefined;
style?: any;
} | undefined);
/**
* @type {ol.interaction.Select}
* @private
*/
private selectInteraction;
/**
* @inheritdoc
*/
getDialogTemplate(): string;
/**
* Apply a buffer for seleted features.
* @param {Number} width Buffer width in map units.
*/
buffer(width: number): void;
/**
* @inheritdoc
*/
activate(): void;
/**
* @inheritdoc
*/
deactivate(): void;
}
import Control from './control';