defmodule AprsmeWeb.Components.InfoMapComponent do @moduledoc """ A simple map component for showing a single station's location on the info page. """ use Phoenix.Component @doc """ Renders a small map showing a single station's position. """ attr :id, :string, default: "info-map" attr :lat, :float, required: true attr :lon, :float, required: true attr :callsign, :string, required: true attr :symbol_html, :string, default: nil attr :height, :string, default: "300px" attr :zoom, :integer, default: 13 def info_map(assigns) do ~H"""