plepe / OpenStreetBrowser

An application to ‘browse’ the information in the displayed part of the map. Similar to common Wikis and also the main page of http://www.openstreetmap.org the website shows a narrow menu on the left side, most of the page is used for the display of the map. In contrast to most Wikis the menu is not static, but rather the content of the map can be browsed in categories. For the map a special style has been developed (sorry guys, I neither like the default Mapnik nor Osmarender styles), and special overlays are displayed to support the current browsed categories. When you click on an object (either from the list or directly on the map) informations on this object are displayed.
http://www.openstreetbrowser.org
GNU General Public License v3.0
88 stars 20 forks source link

Change Marker Color #173

Closed treestryder closed 1 year ago

treestryder commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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

plepe commented 1 year ago

I added the information about the fill parameter to the documentation: https://github.com/plepe/OpenStreetBrowser/commit/83879b88f453b5f0ae93ef68d500ead225c5123b

plepe commented 1 year ago

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