Data attribution for the sources on the map.
<HoloMap.Map cid="explorer" style={@style} attribution_control={false}>
<HoloMap.Control.Attribution compact position="bottom-right" />
</HoloMap.Map>Props
| Prop | Type | Notes |
|---|---|---|
position | string | Corner to place the control in. Default "top-right" |
compact | boolean | Collapse to an ⓘ button that expands on click |
custom_attribution | string or list | Extra credits, alongside the ones sources declare |
Set attribution_control={false} on HoloMap.Map when using this component,
or the map ends up with two attribution controls, because MapLibre adds one by
default.
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.