I need to show the Info window after click on the marker #12
Answered
by
alexandra-c
subhashkLa
asked this question in
Q&A
-
Something like this Is there any way?? This library is really great and helpful to me. If I get this Info tab part It will be great |
Beta Was this translation helpful? Give feedback.
Answered by
alexandra-c
Apr 20, 2022
Replies: 2 comments 1 reply
-
Hello @subhashkLa , You can find an example in react-leaflet documentation, here https://react-leaflet.js.org/docs/example-popup-marker/
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
alexandra-c
-
![]() <LeafletTrackingMarker
icon={icon}
position={[lat, lng]}
previousPosition={prevPos}
duration={1000}
keepAtCenter={true}
>
<Popup>Hello</Popup>
</LeafletTrackingMarker>
</> Getting this error when I put Popup. @alexandra-c |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello @subhashkLa ,
You can find an example in react-leaflet documentation, here https://react-leaflet.js.org/docs/example-popup-marker/
You just have to use the Popup component from react-leaflet inside your marker, something like this: