freestile_h3() is a new function for dynamic hexagonal
binning. It aggregates points into H3 hexagons at zoom-appropriate
resolutions via DuckDB’s H3 community extension and writes a multi-layer
.pmtiles archive where low zooms show coarse hexes,
intermediate zooms show progressively finer hexes, and zooms at or above
base_zoom show the raw points. Aggregation rules are
user-defined SQL expressions
(e.g. c(n = "COUNT(*)", avg_pop = "AVG(pop)")). Opt-in
fade = TRUE produces overlapping zoom windows so adjacent
hex resolutions can cross-fade visually.view_h3_tiles() is a companion viewer that auto-styles
a freestile_h3() archive in mapgl, detecting
clean-break vs cross-fade mode from the PMTiles metadata.vignette("h3-hexagonal-binning") for a
walkthrough.Initial release.
freestile() creates PMTiles archives from sf data
frames with zero external dependencies (no tippecanoe, no Java, no
Go).freestile_layer()
per-layer zoom control.drop_rate exponential feature thinning with
Morton-curve spatial ordering for points and area-based ordering for
polygons/lines.base_zoom control for ensuring all features present at
higher zooms.cluster_distance point clustering with
point_count attribute.coalesce line merging and polygon grouping.
Need a high-speed mirror for your open-source project?
Contact our mirror admin team at info@clientvps.com.
This archive is provided as a free public service to the community.
Proudly supported by infrastructure from VPSPulse , RxServers , BuyNumber , UnitVPS , OffshoreName and secure payment technology by ArionPay.