UNPKG

@ngageoint/mage.arcgis.service

Version:

A mage service plugin that synchronizes mage observations to a configured ArcGIS feature layer.

48 lines 1.1 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ArcObjects = void 0; /** * Observation Features Objects to send, update, or delete in ArcGIS. */ class ArcObjects { /** * Constructor. */ constructor() { this.objects = []; this.observations = []; this.deletions = []; this.firstRun = false; } /** * Add an observation. * @param {ArcObservation} observation The observation to add. */ add(observation) { this.observations.push(observation); this.objects.push(observation.object); } /** * Count of observations. * @returns {number} observation count. */ count() { return this.objects.length; } /** * Is observations empty. * @returns {boolean} true if empty. */ isEmpty() { return this.count() === 0; } /** * Clear the observations. */ clear() { this.objects = []; this.observations = []; } } exports.ArcObjects = ArcObjects; //# sourceMappingURL=ArcObjects.js.map