UNPKG

@geogirafe/lib-geoportal

Version:

GeoGirafe is a flexible application to build online geoportals.

24 lines (23 loc) 963 B
// SPDX-License-Identifier: Apache-2.0 import Layer from './layer.js'; /* * This class is a used in the state of the application, which will be accessed behind a javascript proxy. * This means that each modification made to its properties must come from outside, * because they have to be made through the proxy, so that the modification can be listen. * Therefore, this class must not contain any method which is updating a value directly * For example, any method doing <this.xxx = value> is forbidden here, because the modification be known from the proxy */ export default class LayerDrawing extends Layer { _oLayer; removalRequested = false; constructor(name, oLayer) { super(0, name, 0, { isDefaultChecked: true }); this.isRemovable = true; this.isSwipeable = false; this.isDraggable = false; this._oLayer = oLayer; } clone() { throw new Error('Cannot clone vector layer.'); } }