View Source MbtaMetro.Live.Map (MbtaMetro v0.0.1)
A live component that renders a map using AWS Location Service.
You must pass in the following assigns:
:api_key- The AWS Location Service API key.:map_name- The name of the map to render.:region- The AWS region where the map is located.
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.