A button that expands the map to fill the screen.
<HoloMap.Control.Fullscreen position="top-left" />Props
| Prop | Type | Notes |
|---|---|---|
position | string | Corner to place the control in. Default "top-right" |
The button expands the map's own container, so anything rendered outside it,
such as a sidebar or a legend in your own markup, is not part of the
fullscreen view.
Put controls that should survive fullscreen inside the map as HoloMap.Control
components.
Events
on_enter fires when the map goes fullscreen (MapLibre's
fullscreenstart), and on_exit when it leaves (fullscreenend), by the
button or by the browser, as with the Escape key. Neither carries a
payload:
<HoloMap.Control.Fullscreen on_enter={:went_fullscreen} on_exit={:left_fullscreen} />
def action(:went_fullscreen, _params, component) do
put_state(component, :fullscreen, true)
end
Summary
Functions
Returns true to indicate that the callee module is a component module (has "use Hologram.Component" directive).
Returns the list of property definitions for the compiled component.
Functions
@spec __is_hologram_component__() :: boolean()
Returns true to indicate that the callee module is a component module (has "use Hologram.Component" directive).
Examples
iex> __is_hologram_component__()
true
Returns the list of property definitions for the compiled component.