Closed ColmDC closed 9 months ago
Checking older builds like https://dev.oxford.solidarityeconomy.coop/ which is mykomap@3.0.8 the markers don't go black, but turn red! Seems very likely to be connected.
Not replicatable on mykomap@3.0.7
Error visible on https://dev.maps.solidarityeconomy.coop/temp/dotcoop2023/?searchedFields=name,web on Chrome on Windows 10 mykomap@3.1.0
but markers behave correctly on https://dev.maps.solidarityeconomy.coop/temp/demo-merge-map/ mykomap@3.1.0 on both FF and Chrome on windows.
What it looks like is:
primaryActivity
field of the initiativesprimaryActivity
is unset.Therefore, when we click a pin which has no primary activity it goes black. I think the code to reset the colour, or set it to other colours, is however being removed progressively and mostly broken.
For now I'm just removing the style which makes the pin go black, and I'll leave the refactoring of the logic to the issues in this epic:
Version 3.1.2 of Mykomap released and now deployed on the NCBA map here: The East Timorian pin used to go black - now it doesn't.
Fixed in mykomap@3.1.2 on ncba and mesopotamia
Describe the bug If you select a marker, it goes a little greyer as expected as he dialog is displayed. However if you click away or change the context in another way it turns black and stays black.
To Reproduce Steps to reproduce the behavior:
Expected behavior It should return to the original colour it had before selection,
Screenshots Private Zenhub Image
Desktop (please complete the following information):
Additional context Also visible on https://dev.maps.solidarityeconomy.coop/monitor2022/