Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rpopup onClick not working #341

Open
TrySpace opened this issue Dec 31, 2024 · 1 comment
Open

Rpopup onClick not working #341

TrySpace opened this issue Dec 31, 2024 · 1 comment

Comments

@TrySpace
Copy link

TrySpace commented Dec 31, 2024

Perhaps more a feature request, but I'd like/expected the ability to have an Rpopup onClick event. (even though typescript seems to accept the onClick as valid, it won't get triggered)
Neither will any child element components of the RPopup allow any interaction, mainly due to afaik the .ol-overlaycontainer-stopevent classname on the overlay...

What happens now is that clicking on a RPopup triggers the RMap onClick..

I'm taking from the example: https://mmomtchev.github.io/rlayers/#/popups

The RFeature does take an onClick event, however, this is just to open the RPopup ( <RPopup trigger="click" ... )

Perhaps I should use ROverlay instead, but i'd expect a popup element to work the same, especially when it has the option of trigger="click", AND the docs do say it extends Overlay (https://mmomtchev.github.io/rlayers/api/#rpopup)

@mmomtchev
Copy link
Owner

RPopup is an ROverlay with a custom click handler, you can use ROverlay in this case.

Although something may be possible with RPopup I can not currently invest the time and electricity to do it. I have been living in my van in freezing temperatures because I was evicted from my home as part of the extortion in which the big names in the geospatial data industry agreed to take part. Making new versions is much more difficult now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants