HoloMap.Control.Attribution (HoloMap v0.1.0)

Copy Markdown View Source

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

PropTypeNotes
positionstringCorner to place the control in. Default "top-right"
compactbooleanCollapse to an ⓘ button that expands on click
custom_attributionstring or listExtra 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

__is_hologram_component__()

@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

__props__()

@spec __props__() :: [{atom(), atom(), keyword()}]

Returns the list of property definitions for the compiled component.