_highlightFeature()

in public/js/components/map.js [80:98]


  _highlightFeature(feature, lngLat) {
    this._removePopup();
    const keys = Object.keys(feature.properties);
    let rows = '';
    keys.forEach((key) => {
      if (key === '__id__') {
        return;
      }
      rows += `<dt>${key}</dt><dd>${feature.properties[key]}</dd>`;
    });
    const html = `<div class="euiText euiText--extraSmall"><dl class="popup_feature_list">${rows}</dl></div>`;

    this._currentPopup = new maplibre.Popup();
    this._currentPopup.setLngLat(lngLat);
    this._currentPopup.setHTML(html);
    this._currentPopup.addTo(this._maplibreMap);

    this._maplibreMap.setFilter(this._overlayFillHighlightId, ['==', '__id__', feature.properties.__id__]);
  }