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

Set marker color/icon in DrawControl #1174

Open
achimgaedke opened this issue Jan 22, 2024 · 0 comments
Open

Set marker color/icon in DrawControl #1174

achimgaedke opened this issue Jan 22, 2024 · 0 comments

Comments

@achimgaedke
Copy link

I believe once upon a time a marker had a "color" trait.

The workaround for customizing the color marker seems to be something like this:

a = AwesomeIcon(marker_color="green", name="circle")
marker = Marker(location=center, draggable=True, icon=a)
m.add(marker);

But how do I set the marker color for new markers in the DrawControl's shapeOptions?

The example notebooks examples/DrawControl.ipynb, examples/CustomProjections.ipynb suggest that is/was possible.

Any ideas?

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

1 participant