HoloMap.Layer.FillExtrusion (HoloMap v0.1.0)

Copy Markdown View Source

Extruded polygons, the standard way to draw 3D buildings.

A HoloMap.Layer locked to type: "fill-extrusion". 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

fill_extrusion_color, fill_extrusion_height, fill_extrusion_base, fill_extrusion_opacity, fill_extrusion_pattern, fill_extrusion_translate, fill_extrusion_vertical_gradient.

Layout properties

visibility.

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.