File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
plugins/arcgis/service/src Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,10 @@ export class EventDeletionHandler {
3434 this . _config = config ;
3535 }
3636
37+ public updateConfig ( newConfig : ArcGISPluginConfig ) : void {
38+ this . _config = newConfig ;
39+ }
40+
3741 /**
3842 *
3943 * @param activeEvents The current set of active events.
Original file line number Diff line number Diff line change @@ -178,11 +178,10 @@ export class ObservationProcessor {
178178 if ( this . _previousConfig == null || this . _previousConfig != configJson ) {
179179 this . _transformer = new ObservationsTransformer ( config , console ) ;
180180 this . _geometryChangeHandler = new GeometryChangedHandler ( this . _transformer ) ;
181- this . _eventDeletionHandler = new EventDeletionHandler ( this . _console , config ) ;
181+ this . _eventDeletionHandler . updateConfig ( config ) ;
182182 this . _layerProcessors = [ ] ;
183183 await this . getFeatureServiceLayers ( config ) ;
184184 this . _previousConfig = configJson
185- this . _firstRun = true ;
186185 }
187186 return config
188187 }
@@ -192,7 +191,6 @@ export class ObservationProcessor {
192191 */
193192 async start ( ) {
194193 this . _isRunning = true ;
195- this . _firstRun = true ;
196194 this . processAndScheduleNext ( ) ;
197195 }
198196
You can’t perform that action at this time.
0 commit comments