DigitalCommons / mykomap

A web application for mapping initiatives in the Solidarity Economy
3 stars 0 forks source link

Selecting an marker leaves it black #219

Closed ColmDC closed 9 months ago

ColmDC commented 10 months ago

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:

  1. Go to https://dev.maps.solidarityeconomy.coop/mesopotamia/
  2. Click on the most notherly co-op visible
  3. Click anywhere else on the map.
  4. It is black!

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/

ColmDC commented 10 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

ColmDC commented 10 months ago

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.

wu-lee commented 9 months ago

What it looks like is:

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:

https://github.com/DigitalCommons/mykomap#workspaces/megaboard-639bb01fc526ef0010ab662b/epics/Z2lkOi8vcmFwdG9yL1plbmh1YkVwaWMvMTQzMTE2

wu-lee commented 9 months ago

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.

https://dev.maps.solidarityeconomy.coop/ncba/

ColmDC commented 9 months ago

Fixed in mykomap@3.1.2 on ncba and mesopotamia