destroyContentByClass(layerClass) {
    if (layerClass != null && this._contentContainer.getCurrentLayer() instanceof layerClass) {
      return this.destroyContent();
    }
    return Promise.resolve();
  }
Destroys content layer if it matches layerClass and returns a promise that resolves when the layer has been destroyed.
@returns {Promise}