1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
//! # Maplibre-rs
//!
//! A multi-platform library for rendering vector tile maps with WebGPU.
//!
//! Maplibre-rs is a map renderer that can run natively on MacOS, Linux, Windows, Android, iOS and the web.
//! It takes advantage of Lyon to tessellate vector tiles and WebGPU to display them efficiently.
//! Maplibre-rs also has an headless mode (*work in progress*) that can generate raster images.
//!
//! The official guide book can be found [here](https://maplibre.org/maplibre-rs/docs/book/).
//!
//! ### Example
//!
//! To import maplibre-rs in your `Cargo.toml`:
//!
//! ```toml
//! maplibre = "0.0.2"
//! ```

#![deny(unused_imports)]

extern crate core;

// Export tile format
pub use geozero::mvt::tile; // Used in transferables.rs in web/singlethreaded

// Internal modules
pub(crate) mod tessellation;

pub mod context;
pub mod coords;
#[cfg(feature = "headless")]
pub mod headless;
pub mod io;
pub mod platform;
// TODO: Exposed because of camera
pub mod render;
pub mod style;
pub mod util;

pub mod window;
// Exposed because of doc-strings
pub mod schedule;

pub mod environment;

// Used for benchmarking
pub mod benchmarking;

pub mod event_loop;
pub mod kernel;
pub mod map;
pub mod plugin;
pub mod tcs;

// Plugins
pub mod debug;
pub mod raster;
pub mod vector;