Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing the apparence of drawings using add_drawing() #249

Open
thruesen opened this issue May 12, 2022 · 1 comment
Open

Changing the apparence of drawings using add_drawing() #249

thruesen opened this issue May 12, 2022 · 1 comment

Comments

@thruesen
Copy link

Hi,

Is it possible to adjust the stroke_weight and color of the drawing?
In particular, I am building a Shiny app where I need the user to draw a polygon on a satellite map, but the users complain that it really difficult to see the line while drawing:

image

@dcooley
Copy link
Collaborator

dcooley commented May 15, 2022

it certainly looks possible.

If you're happy to have a go at implementing a PR then the add_drawing() function call needs to accept the various storke_, fill_ etc. arguments. Then these lines need to be replaced to use the user-defined values.

The default values are defined here

Then the javascript functions should just work without needing any changes.

If you're happy to have a go at implementing a PR

If not I can't guarantee when I'll have time to add this myself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants