terrastruct / d2

D2 is a modern diagram scripting language that turns text to diagrams.
https://d2lang.com
Mozilla Public License 2.0
17.82k stars 438 forks source link

shape: geo #1549

Open alixander opened 1 year ago

alixander commented 1 year ago

shape: geo would set a background of a map with bounds defined by nodes. connections can just use direct lines? (which, mapped out on a map, turn into curves).

i suspect this should be a plugin.

map: {
  shape: geo
  r1: New York {
    top: 12.43
    left: -75.33
  }
  r2: SF {
    top: 11.32
    left: -742.2
  }

  r1 -> r2
}

weathermap

bo-ku-ra commented 1 year ago

what are the advantages over Google Maps? https://developers.google.com/maps/documentation/javascript/examples/polyline-simple