Skip to content
Discussion options

You must be logged in to vote

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:

    <LeafletTrackingMarker
      icon={icon}
      position={[lat, lng]}
      previousPosition={prevPos}
      duration={1000}
    >
      <Popup autoPan={false}>{"something"}</Popup>
    </LeafletTrackingMarker>

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by alexandra-c
Comment options

You must be logged in to vote
1 reply
@MinSomai
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #11 on April 20, 2022 14:15.