HoloMap.Control.Logo (HoloMap v0.4.0)

Copy Markdown View Source

MapLibre's logo, a link to maplibre.org.

<HoloMap.Control.Logo position="bottom-left" compact />

Props

PropTypeNotes
positionstringCorner to place the control in. Default "bottom-left", MapLibre's corner for the logo
compactbooleantrue always shows the small logo, false always the full one. Left out, the logo turns small while the map is 640 pixels wide or less

Showing the logo is not required for using MapLibre. HoloMap.Map's maplibre_logo and logo_position add the same logo as MapLibre builds the map, which this component does not need: use one or the other, or the map shows two logos. Unlike that prop, this component can be rendered conditionally, and changed: a change to a prop builds the control again, as for any control.

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.