Repository navigation
How can I set pathOptions while drawing? #1590
Answered
by
JempNobod
hansthen
asked this question in
Questions & Help
|
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? |
Answered by
JempNobod
Sep 12, 2025
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 |
1 reply
Answer selected by
hansthen
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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