This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-04-27
Channels
- # announcements (11)
- # asami (7)
- # babashka (140)
- # beginners (58)
- # calva (12)
- # clj-kondo (5)
- # cljsrn (9)
- # clojure (60)
- # clojure-australia (8)
- # clojure-boston (1)
- # clojure-europe (35)
- # clojure-france (2)
- # clojure-germany (5)
- # clojure-italy (8)
- # clojure-nl (7)
- # clojure-sweden (14)
- # clojure-uk (23)
- # clojurescript (16)
- # community-development (2)
- # cursive (7)
- # datomic (6)
- # docker (1)
- # emacs (4)
- # fulcro (11)
- # graalvm (5)
- # honeysql (6)
- # jobs (6)
- # jobs-discuss (36)
- # lsp (19)
- # malli (7)
- # meander (8)
- # off-topic (18)
- # pathom (16)
- # practicalli (33)
- # re-frame (43)
- # react (2)
- # remote-jobs (11)
- # sci (83)
- # shadow-cljs (55)
- # tools-deps (48)
Hi there, I am working with react-map-gl using #helix wrapper. I have cards on the left side and a map on the right. When I hover on the card, I want the map layer icon to change so that it can indicate to the user where the item is located on the map. I am facing this issue where my icons are not being refreshed when I hover on the cards, I have to go back to the map and click on the it order for the icon changes to take place. Please see the gif attached
($ Source {:id "place" :type "geojson" :data (clj->js {:type "FeatureCollection"
:features [ { :geometry {:type "Point" :coordinates [(:Longitude place),(:Latitude place)]}
:properties
{:title (:Name place) :marker-symbol (if (= placeId (int (get-item local-storage "placeToBeHighLighted"))) "HOVERED_SVG" "PLACE_SVG" ) :marker-type "place"
}}]})}
($ Layer {:type "symbol"
:layout #js {
:icon-image "{marker-symbol}"
:text-field (:Name place)
:paint #js {
:text-color "#000"
:text-halo-width 5}})))