onRemoveFeatureChannelResponse method

void onRemoveFeatureChannelResponse(
  1. AbstractAGMLFeatureLayer layer,
  2. String response
)

Implementation

void onRemoveFeatureChannelResponse(
  AbstractAGMLFeatureLayer layer,
  String response
) {
  if(response == AGMLChannelStatusResponseEnum.success.name) {
    if(layer.runtimeType == AGMLLocalFeatureLayer) {
      _mapServiceLayers.remove(layer);
      _onChangedMapServiceLayersStreamController.add(_mapServiceLayers);
    } else {
      _mapLocalLayers.remove(layer);
      _onChangedMapLocalLayersStreamController.add(_mapLocalLayers);
    }
  }
}