applyLayoutVisibility(evt) {
    const { visible } = this;
    const { mbMap } = this.mapboxLayer;

    if (!mbMap) {
      return;
    }

    const style = mbMap.getStyle();

    if (!style) {
      return;
    }

    if (this.style && visible) {
      this.mapboxLayer.setStyle(this.style);
    }

    super.applyLayoutVisibility(evt);
  }
/**
   * Apply visibility to style layers that fits the filter function.
   * @private
   */
Apply visibility to style layers that fits the filter function.
@private
Apply visibility to style layers that fits the filter function . @private
applyLayoutVisibility(evt) {
    const { visible } = this;
    const { mbMap } = this.mapboxLayer;
    if (!mbMap) {
      return;
    }
    const style = mbMap.getStyle();
    if (!style) {
      return;
    }
    if (this.style && visible) {
      this.mapboxLayer.setStyle(this.style);
    }
    super.applyLayoutVisibility(evt);
  }
applyLayoutVisibility ( evt ) { const { visible } = this ; const { mbMap } = this . mapboxLayer ; if ( ! mbMap ) { return ; } const style = mbMap . getStyle ( ) ; if ( ! style ) { return ; } if ( this . style && visible ) { this . mapboxLayer . setStyle ( this . style ) ; } super . applyLayoutVisibility ( evt ) ; }
Apply visibility to style layers that fits the filter function.
Apply visibility to style layers that fits the filter function .