Open trillerpfeife opened 8 years ago
Thanks for pointing this out. Let me see if I can figure out what's going on. I'll try to push an update soon.
Thanks for the fast response. I also hat issues with redrawing L.RadialBarChartMarker, after every redraw the size increases.
Pushed a potential fix to this branch: https://github.com/humangeo/leaflet-dvf/tree/feature/chartmarkerfix
Can you give this a try when you get a chance and let me know if that fixes things for you?
@trillerpfeife Did that fix work for you?
Thanks @sfairgrieve for the fix. I ended up making my own pie chart marker based on https://github.com/iatkin/leaflet-svgicon due to extend it in various ways.
L.RadialMeterMarker draws a marker with given options but returns wrong options. For example:
Returns a marker with following options:
I think due to the "Add a background" implementation the option properties will be overwritten, right?
https://github.com/humangeo/leaflet-dvf/blob/1d47d672d0ac2d617a3ddb681a33c657f7fee7a1/src/leaflet.dvf.chartmarkers.js#L924
In issue #7 I made a fiddle to show that it will break the redraw() function