How can I set pathOptions while drawing? #1590
-
I have set my global pathOptions to a specific color. Newly created shapes take on that color. However, during drawing, the color of the shape is still the default blue color. The only exception is when I draw a rectangle. This has the same color as the resulting shape. Am I doing something wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I guess I am a bit late to answer but in case you still need or someone else coming along. If so try setting the Option hintlineStyle
You can find it here : https://geoman.io/docs/leaflet/modes/draw-mode#draw-options |
Beta Was this translation helpful? Give feedback.
I guess I am a bit late to answer but in case you still need or someone else coming along.
I am not quite sure if I understand what you mean, do you mean the helper line that gets shown after clicking once and before clicking on the second point?
If so try setting the Option hintlineStyle
You can find it here : https://geoman.io/docs/leaflet/modes/draw-mode#draw-options