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

Change Marker Color #173

Closed
treestryder opened this issue Jan 3, 2023 · 5 comments
Closed

Change Marker Color #173

treestryder opened this issue Jan 3, 2023 · 5 comments

Comments

@treestryder
Copy link

It is hard to see icons, particularly multicolor icons, against the red fill color used for markers by default. Is there a way for a category to change this?

@plepe
Copy link
Owner

plepe commented Jan 4, 2023

Yes, you have to set the markerSymbol and listMarkerSymbol. E.g. {{ markerPointer({ fillColor: '#ffffff' }) }} resp. {{ markerCircle({ fillColor: '#ffffff' }) }}.

See also the https://github.com/plepe/OpenStreetBrowser/blob/master/doc/Tutorial.md for some examples.

@treestryder
Copy link
Author

Thank you. Now that the fill parameter is fixed, I was able to get the following to work.

  markerSymbol: |
    {{ markerPointer({ fillColor: '#FFFFFF' }) }}
  listMarkerSymbol: |
    {{ markerCircle({ fillColor: '#FFFFFF' }) }}

@treestryder
Copy link
Author

Oh, and I found that setting them to null, or empty in YAML removes them. Which will be handy in some cases.

@plepe plepe closed this as completed Jan 11, 2023
@plepe
Copy link
Owner

plepe commented Jan 11, 2023

I added the information about the fill parameter to the documentation: 83879b8

@plepe
Copy link
Owner

plepe commented Jan 11, 2023

(The change about supporting the fill parameter resulted in the transparent markers)

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

No branches or pull requests

2 participants