Interactive map viewer for A5 geospatial cells, powered by deck.gl. Renders cells directly in the browser using deck.gl’s native A5Layer — no pre-computation of boundaries needed. Intentionally minimal API for fast prototyping and exploration of A5 data.
# install.packages("pak")
pak::pak("belian-earth/a5view")library(a5R)
library(a5view)
# Pick a cell and expand to a disk
cell <- a5_lonlat_to_cell(-3.19, 55.95, resolution = 9)
disk <- a5_grid_disk(cell, k = 10) |>
a5_uncompact(resolution = 9)
# Colour by distance from centre
a5_view(disk, fill = a5_cell_distance(cell, disk), palette = "Inferno")Features:
- Colour mapping from numeric vectors or data frame columns with any
hcl.colors()palette - Interactive basemap selector (dark, light, OSM, satellite)
- Opacity slider
- Tooltip with cell ID on click, fill value on hover
- Cell border styling
- 3D extrusion via
elevation - Shiny bindings (
a5_viewOutput/renderA5_view)
