← API Reference
@mapgpu/wasm-core
Rust/WASM spatial computing primitives.
npm install @mapgpu/wasm-core Exports
function
triangulate Polygon triangulation returning vertex + index TypedArrays. Uses earcut algorithm for holes support.
function
cluster_points Grid++ point clustering algorithm. Groups nearby points into clusters at a given radius.
function
project_coordinates Batch coordinate projection between CRS (EPSG:4326 ↔ EPSG:3857).
function
build_spatial_index R-tree spatial index with Hilbert curve optimization for fast bbox queries.