Zoom in/out buttons and a compass.
<HoloMap.Control.Navigation position="top-right" visualize_pitch />Props
| Prop | Type | Notes |
|---|---|---|
position | string | Corner to place the control in. Default "top-right" |
show_compass | boolean | Show the compass. Default true |
show_zoom | boolean | Show the zoom buttons. Default true |
visualize_pitch | boolean | Tilt the compass needle to reflect pitch |
The compass is also how a user resets a rotated map. Clicking it returns
north to up. Hiding it on a map where drag_rotate is enabled leaves them
with no way back.
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.