Skip to main content

maps_engine_rust/
lib.rs

1//! # maps_engine_rust
2//!
3//! Zero-dependency map engine core in Rust — a port of the TypeScript
4//! [maps-engine](https://github.com/gnoudisme/maps-engine).
5//!
6//! Provides the math every slippy-map needs, without any rendering or DOM:
7//!
8//! - [`projection`] — Web Mercator lon/lat ↔ pixel math
9//! - [`tile`] — XYZ tile ids, bounds, quadkeys
10//! - [`geo`] — haversine distance, bearings, destinations
11//! - [`geofence`] — polygon & circle geofences
12//! - [`view`] — camera state (center, zoom, bearing, pitch)
13//! - [`cluster`] — grid marker clustering
14//! - [`heatmap`] — heatmap intensity grids
15//! - [`draw`] — drawing session with undo/redo
16//! - [`measure`] — distance / area measurement + formatting
17//! - [`navigation`] — turn-by-turn maneuver detection & progress
18//! - [`geojson`] — minimal GeoJSON types
19//!
20//! Rendering (canvas/wgpu/web-sys) is intentionally out of scope —
21//! pair this crate with your renderer of choice.
22
23pub mod cluster;
24pub mod draw;
25pub mod geo;
26pub mod geofence;
27pub mod geojson;
28pub mod heatmap;
29pub mod measure;
30pub mod navigation;
31pub mod projection;
32pub mod tile;
33pub mod view;
34
35pub use geo::LonLat;
36pub use view::View;