Position a marker direction in react-leaflet facing a [long, lat]
问题 I'm trying to add a marker on GeoJSON bezier curve which connects origin and destination points. The marker needs to be positioned facing destination. Here is the marker code: <Marker position={midPoint} key={origin}> <Tooltip permanent direction="center" sticky> <span> > </span> </Tooltip> </Marker> It would add markers at desired position But those little ">" would not point towards destination. Any solution for the above scenario? 回答1: One option to consider is utilize Leaflet