A scale bar showing ground distance.
<HoloMap.Control.Scale unit="metric" max_width={120} position="bottom-left" />Props
| Prop | Type | Notes |
|---|---|---|
position | string | Corner to place the control in. Default "top-right" |
unit | string | "metric", "imperial" or "nautical" |
max_width | number | Maximum bar width in pixels. Default 100 |
The bar picks a round distance that fits within max_width, so the number
changes as the user zooms.
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.