-- Map Widget — renders a location marker, streams its signals
--
-- Run with:
--   dreamstack stream examples/widget-map.ds --port 9101

let lat = 37.7749
let lng = -122.4194
let label = "San Francisco"

stream map on "ws://localhost:9101" { mode: signal }

view map =
  column [
    text "📍 {label}"
    text "Lat: {lat}"
    text "Lng: {lng}"
  ]
