ole
Version:
OpenLayers Editor
46 lines (45 loc) • 1.25 kB
TypeScript
/**
* OLE storage service.
* Base class for storage services,
* such as LocalStorage, PermalinkStorage, CookieStorage.
* @alias ole.service.Storage
*/
export default class Storage extends Service {
/**
* Saves control properties.
* @param {object} [options] Service options
* @param {array.<ol.control.Control>} [controls] List of controls.
* If undefined, all controls of the editor are used.
*/
constructor(optOptions: any);
/**
* List of service controls
* @type {array.<ol.control.Control>}
* @private
*/
private controls;
/**
* List of properties keys to ignore.
* @type {array.<string>}
*/
ignoreKeys: array<string>;
/**
* Store control properties.
* @param {string} controlName Name of the control.
* @param {object} properties Control properties.
*/
storeProperties(controlName: string, properties: object): {};
/**
* Restore the control properties.
*/
restoreProperties(): void;
/**
* Store the active state of controls.
*/
storeActiveControls(): any;
/**
* Restore the active state of the controls.
*/
restoreActiveControls(): void;
}
import Service from './service';