UNPKG

ole

Version:

OpenLayers Editor

41 lines (40 loc) 1.1 kB
export default TopologyControl; /** * Control for deleting geometries. * @extends {Control} * @alias ole.TopologyControl */ declare class TopologyControl extends Control { /** * @inheritdoc * @param {Object} [options] Control options. * @param {number} [options.hitTolerance] Select tolerance in pixels * (default is 10) * @param {ol.style.Style.StyleLike} [options.style] Style used when a feature is selected. */ constructor(options?: { hitTolerance?: number | undefined; style?: any; } | undefined); /** * @type {ol.interaction.Select} * @private */ private selectInteraction; /** * Apply a topology operation for given features. * @param {Array.<ol.Feature>} features Features. */ applyTopologyOperation(features: Array<ol.Feature>): void; topologyFeatures: ol.Feature[] | undefined; /** * @inheritdoc */ activate(): void; addedFeatures: any[] | undefined; /** * @inheritdoc */ deactivate(silent: any): void; } import Control from './control';