Fork me on GitHub
#datavis
<
2023-02-07
>
Ben Sless08:02:04

question relating to vega lite, assuming I have two geo json sources, one a map and one a coordinate, how do I render both in the same view?

Ben Sless08:02:00

{:width 650 :height 650
  :config {:projection {:type "mercator" :center [10.4515 51.1657]}}
  :layer [#_{:data {:url ""
                    :format {:type "topojson" #_#_:feature "DEU_adm2"}}
             :mark {:type "geoshape" :fill "lightgray" :stroke "white"}}
          {:data {:url ""
                  :format {:type "topojson"}}
           :mark {:type "geoshape" :fill "lightgray" :stroke "white"}}]}
Either works independently but I can't draw both together

Ben Sless20:02:19

Ended up finding the solution by the very @metasoarous , posting for posterity https://github.com/vega/vega-lite/issues/3689

🎉 2
🙌 2
Ben Sless08:02:00

{:width 650 :height 650
  :config {:projection {:type "mercator" :center [10.4515 51.1657]}}
  :layer [#_{:data {:url ""
                    :format {:type "topojson" #_#_:feature "DEU_adm2"}}
             :mark {:type "geoshape" :fill "lightgray" :stroke "white"}}
          {:data {:url ""
                  :format {:type "topojson"}}
           :mark {:type "geoshape" :fill "lightgray" :stroke "white"}}]}
Either works independently but I can't draw both together