BlueMapWeb/src/markers/MarkerSet.js

27 lines
542 B
JavaScript
Raw Normal View History

2021-01-18 16:51:03 +01:00
import {Object3D} from "three";
export class MarkerSet extends Object3D {
2021-01-18 16:51:03 +01:00
/**
* @param markerSetId {string}
*/
constructor(markerSetId) {
super();
2021-01-18 16:51:03 +01:00
Object.defineProperty(this, 'isMarkerSet', {value: true});
this.markerSetId = markerSetId;
this.label = markerSetId;
2021-01-18 16:51:03 +01:00
this.toggleable = true;
this.defaultHide = false;
}
dispose() {
super.dispose();
2021-01-18 16:51:03 +01:00
this.children.forEach(child => {
if (child.dispose) child.dispose();
});
2021-01-18 16:51:03 +01:00
}
}