Replies: 1 comment
-
This is an implementation that doesn't need any framework or other lib dependencies, so it can't render a react popup. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In the documentation, it says:
popupRender
A function that specifies how the results should be rendered in the popup menu. Any HTML in the returned string will be rendered.
(item): string
Parameters
item: CarmenGeojsonFeature
Returns string
In my use case where I'm using React, I haven't found a good solution to creating pop-ups that have more than just static text populating them. For example, if you wanted to include a button, there doesn't seem to be a way to pass a function to the onClick property of the button in raw HTML.
Beta Was this translation helpful? Give feedback.
All reactions