Fork me on GitHub
#clerk
<
2023-02-08
>
Ben Sless20:02:49

A bit grim, but it's been on my mind since I felt a bit of the quakes here

(v/vl
 {:width 800 :height 800
  :config {:projection {:type "mercator"}}
  :layer [{:data {:url ""
                  :format {:type "json" :property "features"}}
           :mark {:type "geoshape" :fill "white" :stroke "black"}}
          {:data {:url ""
                  :format {:type "json" :property "features"}}
           :mark {:type "geoshape" :fill "lightgray" :stroke "red"}
           :encoding {:color {}}}]})
Could be a good demo for using input sliders to modify the view - map center, minimum magnitude, time range, etc.

Sam Ritchie20:02:20

@ben.sless that would be great with https://leva.mentat.org for the sliders

Ben Sless20:02:47

That's what I was thinking about! I'll play around with it tomorrow

🎉 2
Sam Ritchie21:02:27

new mafs/clerk #C019ZQSPYG6 template in Mafs.cljs 0.2.0: https://github.com/mentat-collective/Mafs.cljs/tree/main/resources/mafs/clerk this generates a batteries-included Clerk project https://clerk-utils.mentat.org/#project-template, but tuned for Mafs.cljs, including an intro notebook with a few Mafs demos.