Custom marker colours for map icons no longer work
Version
I just upgraded to 3.0.1 (though I might've been on something older than 3.0.0 before; quite possibly 2.2.0 or older).
Expected Behaviour
- Background colours support custom colours (
rgb(),rgba(), hexadecimals, etc.) as well as text-based colours.
Actual Behaviour
- I noticed that the background colours for all of my pins no longer show up and I have no background whatsoever (just icons).
- From playing with a fresh
data.json, it looks like custom colours likergb(126, 208, 255)or#7ED0FFdon't work anymore.
- From playing with a fresh
- Meanwhile, text colours like
redoryellowstill appear to work.
Notes
- From what
Leaflet.ExtraMarkersindicates, non-text colours work if thesvgproperty is set totrue. Would that be related to the root cause? - Happy to help test this in older versions like 3.0.0 or 2.3.0 too, but I haven't figured out how in Obsidian to downgrade versions.
- Could also check out the source again if there isn't one.
In 3.0.0 I did a major revision to how map markers are shown, because leaflet.ExtraMarkers became horribly slow when scaling to thousands of markers, so I wrote some custom rendering code that is substantially faster. It's quite certain that this is where it broke. I'll work on supporting it back.
In 3.0.0 I did a major revision to how map markers are shown, because
leaflet.ExtraMarkersbecame horribly slow when scaling to thousands of markers, so I wrote some custom rendering code that is substantially faster. It's quite certain that this is where it broke. I'll work on supporting it back.
That'd make sense. Definitely noticed the performance boost, so that part's real nice. ^_^
Thanks!
To clarify: is the property you are modifying iconColor or markerColor?
I'm modifying markerColor.