reflex icon indicating copy to clipboard operation
reflex copied to clipboard

[ENTERPRISE] Leaflet - Marker on_click events don't fire

Open fr33tux opened this issue 3 months ago β€’ 1 comments

πŸ‘‹

I've been evaluating the reflex-enterprise package, especially the Leaflet.js integration. However I'm struggling to get events working on anything but the map itself: Markers, Popup or Tooltip don't fire events which makes it less useful to display interactive maps with user interaction with the Markers.

I'm looking at displaying a text specific to a marker whenever its clicked on the map.

...

Expected behavior

When attaching an on_click event to a Marker, it should fire. Same for the Popup or Tooltip objects. Only the map object itself seems to fire the on_click event properly. The event should contain the Marker id to be able to identify which Marker was clicked.

...

Steps to reproduce (if applicable)

  1. Use this code snippet from the documentation: https://reflex.dev/docs/enterprise/map/#dynamic-markers
  2. Add a state, and a @rx.event handler that simply print whatever it receives.
  3. Observe that nothing gets emitted. Attach the same handler to the on_click event to the map, it works.

It looks like the on_popupopen, on_popupclose, on_tooltipopen, on_tooltipclose also don't fire.

Environment

  • Reflex Version: 0.8.9
  • Python Version: 3.13
  • OS: OSX
  • Browser: Firefox, Safari

By the way, thank you for Reflex, it's really awesome :) The Enterprise package looks super promising too!

fr33tux avatar Sep 15 '25 20:09 fr33tux

yea i am having the same issue too!

RoastedKernel avatar Nov 02 '25 07:11 RoastedKernel