onLoad() {
    const { mbMap } = this.mapboxLayer;
    this.osmPointsLayers = mbMap
      .getStyle()
      .layers.filter((layer) => {
        return (
          layer['source-layer'] === 'osm_points' && layer.id !== 'osm_points'
        );
      })
      .map((layer) => layer.id);

    this.addSource();
    super.onLoad();
    this.updateSource();
  }
/**
   * On Mapbox map load callback function. Add style sources then style layers.
   * @override
   */
On Mapbox map load callback function. Add style sources then style layers.
@override
On Mapbox map load callback function . Add style sources then style layers . @override
onLoad() {
    const { mbMap } = this.mapboxLayer;
    this.osmPointsLayers = mbMap
      .getStyle()
      .layers.filter((layer) => {
        return (
          layer['source-layer'] === 'osm_points' && layer.id !== 'osm_points'
        );
      })
      .map((layer) => layer.id);
    this.addSource();
    super.onLoad();
    this.updateSource();
  }
onLoad ( ) { const { mbMap } = this . mapboxLayer ; this . osmPointsLayers = mbMap . getStyle ( ) . layers . filter ( ( layer ) => { return ( layer [ 'source-layer' ] === 'osm_points' && layer . id !== 'osm_points' ) ; } ) . map ( ( layer ) => layer . id ) ; this . addSource ( ) ; super . onLoad ( ) ; this . updateSource ( ) ; }
On Mapbox map load callback function.
On Mapbox map load callback function .