Raster tiles: aerial imagery, scanned maps, any pre-rendered tile pyramid.
<HoloMap.Source.Raster
id="ortho"
tiles={["https://tiles.example.com/ortho/{z}/{x}/{y}.png"]}
tile_size={256}
attribution="© Example Imagery"
/>
<HoloMap.Layer.Raster id="ortho-layer" source="ortho" paint={%{raster_opacity: 0.8}} />tile_size matters more than it looks: 256 is the classic scheme, 512
matches the vector-tile grid. Getting it wrong does not error. It shifts the
imagery half a zoom level out of alignment with everything else.
Props
| Prop | Type | Notes |
|---|---|---|
id | string | Required. Referenced by layers' source prop |
url | string | TileJSON endpoint. Supply this or tiles |
tiles | list | Tile URL templates containing {z}, {x}, {y} |
tile_size | number | Pixel size of one tile, usually 256 or 512 |
min_zoom / max_zoom | number | Zoom range the tiles exist at |
bounds | list | [west, south, east, north] extent of the imagery |
scheme | string | "xyz" (default) or "tms" |
volatile | boolean | Skip the tile cache |
attribution | string | Attribution text |
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.