MapLibre's logo, a link to maplibre.org.
<HoloMap.Control.Logo position="bottom-left" compact />Props
| Prop | Type | Notes |
|---|---|---|
position | string | Corner to place the control in. Default "bottom-left", MapLibre's corner for the logo |
compact | boolean | true 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
@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.