View Source MbtaMetro.Live.Map (MbtaMetro v0.0.43)
A live component that renders a map using Stadia.
You must pass in the following assigns:
:api_key
- The AWS Location Service API key.
You can optionally pass in the following assigns:
:class
- The CSS classes to apply to the map container. You'll most likely want to set the height and width of the map here.:click_handler
- A boolean indicating whether to handle map clicks.
If :click_handler
is true
, the component will send a map-clicked
event to the parent live view when the map is clicked.
Summary
Functions
Renders the map component.