maplibre / maplibre-gl-inspect

Maplibre GL Inspect adds an inspect control to maplibre-gl-js to view all features of the vector sources and allows hovering over features to see their properties.
https://maplibre.org/maplibre-gl-inspect/
BSD 3-Clause "New" or "Revised" License
40 stars 7 forks source link

Popup doesn't work correctly in some scenario #12

Closed HarelM closed 7 months ago

HarelM commented 7 months ago

See the following issue: https://github.com/maplibre/maputnik/issues/576

Steps to reproduce:

  1. Open inspect with the following configuration:
    showMapPopup: true,
    showMapPopupOnHover: false,
    showInspectMapPopupOnHover: true,
    blockHoverPopupOnClick: true,
  2. click the map: popup is correctly displayed
  3. switch the view to "Inspect"
  4. click the map: popup is correctly displayed
  5. switch the view back to "Map"
  6. click the map: no popup is displayed

This is basically due to bad state condition when switching from one to the other.