addSources() {
    if (!this.mapboxLayer.mbMap) {
      return;
    }
    const { mbMap } = this.mapboxLayer;

    this.sources.forEach((source) => {
      const { id } = source;
      if (!mbMap.getSource(id)) {
        const withoutId = { ...source };
        delete withoutId.id;
        mbMap.addSource(id, withoutId);
      }
    });
  }
// Add sources for features using clustering and for highligting.
Add sources for features using clustering and for highligting.
Add sources for features using clustering and for highligting .
addSources() {
    if (!this.mapboxLayer.mbMap) {
      return;
    }
    const { mbMap } = this.mapboxLayer;
    this.sources.forEach((source) => {
      const { id } = source;
      if (!mbMap.getSource(id)) {
        const withoutId = { ...source };
        delete withoutId.id;
        mbMap.addSource(id, withoutId);
      }
    });
  }
addSources ( ) { if ( ! this . mapboxLayer . mbMap ) { return ; } const { mbMap } = this . mapboxLayer ; this . sources . forEach ( ( source ) => { const { id } = source ; if ( ! mbMap . getSource ( id ) ) { const withoutId = { ... source } ; delete withoutId . id ; mbMap . addSource ( id , withoutId ) ; } } ) ; }
Add sources for features using clustering and for highligting.
Add sources for features using clustering and for highligting .