Skip to main content

All Questions

1 vote
0 answers
117 views

How to apply style on PolylineDecorator

I'm working on project to show the history of GPS device. For every few seconds, location of GPS devices are sent to our SQL server and currently I can use these data and show on map. function ...
RunningKanguru's user avatar
1 vote
1 answer
1k views

polylinedacorator with react leaflet 4

I am trying to include arrows to the Polyline in react-leaft. For that I am using polylinedecorator plugin. There is a similar post on this platform. However, it uses withLeaflet module which is not ...
user3050590's user avatar
  • 1,716
0 votes
1 answer
204 views

Problem with using method setPaths ( Leaflet PolylineDecorator)

I wanna update the component and change the lines. When I try to send new props with coordinates, old coordinates also staying. const PolylineDecorator = withLeaflet(props => { const { positions } ...
Mir Sina Ghaffari's user avatar
1 vote
1 answer
783 views

Separate colors for stroke, fill

I've added arrowheads along the path of a GeoJson. I'm wondering if there is a way to customize the stroke color to be different from fill color? Here are the options I tried: { offset: "...
StangSpree's user avatar
4 votes
1 answer
4k views

How to use leaflet-polylinedecorator in react 16.4.1

I'm trying to use the leaflet plugin polylinedecorator in react 16.4.1 (so without hooks). However, the only example I have been able to find on how to use this plugin in react is using hooks (see: ...
Emmy's user avatar
  • 3,693