removeSource() {
    if (!this.mapboxLayer.mbMap) {
      return;
    }
    const { mbMap } = this.mapboxLayer;
    const { id } = this.source;
    if (mbMap.getSource(id)) {
      mbMap.removeSource(id);
    }
  }
// Remove source added by addSources().
Remove source added by addSources().
Remove source added by addSources () .
removeSource() {
    if (!this.mapboxLayer.mbMap) {
      return;
    }
    const { mbMap } = this.mapboxLayer;
    const { id } = this.source;
    if (mbMap.getSource(id)) {
      mbMap.removeSource(id);
    }
  }
removeSource ( ) { if ( ! this . mapboxLayer . mbMap ) { return ; } const { mbMap } = this . mapboxLayer ; const { id } = this . source ; if ( mbMap . getSource ( id ) ) { mbMap . removeSource ( id ) ; } }
Remove source added by addSources().
Remove source added by addSources () .