init(map) {
    super.init(map);
    this.map.on('pointermove', (e) => {
      const feature = this.map.forEachFeatureAtPixel(e.pixel, (f) => f);
      if (feature !== this.hoverFeature) {
        this.hoverFeature = feature;
        if (this.featuresLayer) {
          this.featuresLayer.changed();
          if (this.labelsLayer) {
            this.labelsLayer.changed();
          }
        } else {
          this.olLayer.changed();
        }
        this.mouseOverCallbacks.forEach((c) => c(feature, e.coordinate));
      }
    });
  }
/**
   * Set the hoverFeature when hovering a feature.
   * @private
   */
Set the hoverFeature when hovering a feature.
@private
Set the hoverFeature when hovering a feature . @private
init(map) {
    super.init(map);
    this.map.on('pointermove', (e) => {
      const feature = this.map.forEachFeatureAtPixel(e.pixel, (f) => f);
      if (feature !== this.hoverFeature) {
        this.hoverFeature = feature;
        if (this.featuresLayer) {
          this.featuresLayer.changed();
          if (this.labelsLayer) {
            this.labelsLayer.changed();
          }
        } else {
          this.olLayer.changed();
        }
        this.mouseOverCallbacks.forEach((c) => c(feature, e.coordinate));
      }
    });
  }
init ( map ) { super . init ( map ) ; this . map . on ( 'pointermove' , ( e ) => { const feature = this . map . forEachFeatureAtPixel ( e . pixel , ( f ) => f ) ; if ( feature !== this . hoverFeature ) { this . hoverFeature = feature ; if ( this . featuresLayer ) { this . featuresLayer . changed ( ) ; if ( this . labelsLayer ) { this . labelsLayer . changed ( ) ; } } else { this . olLayer . changed ( ) ; } this . mouseOverCallbacks . forEach ( ( c ) => c ( feature , e . coordinate ) ) ; } } ) ; }
Set the hoverFeature when hovering a feature.
Set the hoverFeature when hovering a feature .