This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-04-19
Channels
- # announcements (37)
- # aws (6)
- # babashka (12)
- # babashka-sci-dev (16)
- # beginners (83)
- # biff (10)
- # cider (14)
- # cljdoc (26)
- # cljs-dev (20)
- # clojure (123)
- # clojure-czech (9)
- # clojure-europe (26)
- # clojure-nl (4)
- # clojure-norway (20)
- # clojure-spec (7)
- # clojure-uk (6)
- # clojured (14)
- # clojurescript (28)
- # cursive (5)
- # datalevin (8)
- # datomic (3)
- # duct (6)
- # emacs (26)
- # events (2)
- # fulcro (7)
- # gratitude (1)
- # holy-lambda (19)
- # integrant (1)
- # jobs (2)
- # leiningen (8)
- # lsp (7)
- # nyc (1)
- # pathom (70)
- # re-frame (8)
- # reagent (15)
- # releases (1)
- # sci (8)
- # shadow-cljs (117)
- # testing (5)
- # tools-deps (11)
- # vim (5)
Hi @tony.kay, it seems like https://book.fulcrologic.com/ is returning nginx welcome message at the moment. Is this happening to you as well?
👍 1
Hi, I have an app build around https://book.fulcrologic.com/#HOCGoogleMaps to edit polygons. I don't know how to get access to map instance, to retrieve changed polygon (https://developers.google.com/maps/documentation/javascript/reference/map#Map.data). I tried to find map instance in injected-props.
You’ll probably need to capture an instance of maps into a react ref
(defsc ImageUpload [this props {:keys [on-scan]}]
{:ident (fn [] [:component/id ::ImageUpload])
:query []
:initial-state {}
:route-segment ["image"]}
(let [ref (react/createRef)]
(comp/fragment
(ui-button {:icon true :labelPosition "left"
:onClick (fn [] (.openImageDialog (.-current ref)))}
(ui-icon {:name "upload"})
"Select Image"))))