HoloMap.Layer.Line (HoloMap v0.1.0)

Copy Markdown View Source

Stroked lines.

A HoloMap.Layer locked to type: "line". See that module for the full prop list, ordering rules and event payloads. Everything here is identical apart from the layer type, which is fixed and cannot be overridden.

Paint properties

line_color, line_width, line_opacity, line_blur, line_dasharray, line_gap_width, line_offset, line_pattern, line_gradient, line_translate.

Layout properties

line_cap, line_join, line_miter_limit, line_round_limit, line_sort_key, visibility.

line_pattern names an image the same way icon_image does: it must come from the style's sprite or from a HoloMap.Image.

Property names may be written as atoms in Elixir style (:fill_color) or as MapLibre specification names ("fill-color"); both reach MapLibre as the latter. The full reference lives in the MapLibre style specification.

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.