leaflet-dvf icon indicating copy to clipboard operation
leaflet-dvf copied to clipboard

Styling attributes for markers and charts

Open aurelien-robineau opened this issue 6 years ago • 3 comments

Hi, I can't find a list of all possibles styling attributes possible for markers and charts. I guessed some of them, but I surely missed some of the possibilities. By the way the color attribute changes the border color on histrograms, but not on pie charts (I did not test on other charts). Maybe it is a bug ?

Thanks.

aurelien-robineau avatar May 20 '19 12:05 aurelien-robineau

Some of the marker options are defined here: https://github.com/humangeo/leaflet-dvf/wiki/6.-Markers. In most cases, what's mentioned on the wiki is in addition to normal Leaflet Path styling options. The components of chart markers are just Path objects, so they accept all the same styling parameters that normal Leaflet path objects accept as well: https://leafletjs.com/reference-1.5.0.html#path. Hope this helps, but let me know if it doesn't.

The color thing may be a bug, and is worth investigating - thanks for pointing that out.

sfairgrieve avatar May 20 '19 14:05 sfairgrieve

It does help, thanks. I just didn't realise that I could actually use normal Leaflet styling options. I let this topic open so you can close it when you know wether the color is a bug or not.

aurelien-robineau avatar May 20 '19 14:05 aurelien-robineau

@aurelien-robineau can you please mark as resolved if you have fixed? :) thank you so much!

valerio-bozzolan avatar Feb 15 '22 22:02 valerio-bozzolan