UNPKG

node-red-contrib-tak-registration

Version:

A Node-RED node to register to TAK and to help wrap files as datapackages to send to TAK

30 lines (28 loc) 522 B
import TreeMap from '../../../../java/util/TreeMap' export default class NodeMap { constructor () { this._nodeMap = new TreeMap() } find (coord) { return this._nodeMap.get(coord) } iterator () { return this._nodeMap.values().iterator() } remove (pt) { return this._nodeMap.remove(pt) } values () { return this._nodeMap.values() } add (n) { this._nodeMap.put(n.getCoordinate(), n) return n } interfaces_ () { return [] } getClass () { return NodeMap } }