Crate maplibre

source ·
Expand description

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.

Example

To import maplibre-rs in your Cargo.toml:

maplibre = "0.0.2"

Modules

  • Collection of utilities used to perform certain calculations more conveniently.
  • Provides utilities related to coordinates.
  • Handles IO related processing as well as multithreading.
  • Handles platform specific code. Depending on the compilation target, different parts of this module are used.
  • This module implements the rendering algorithm of maplibre-rs. It manages the whole communication with the GPU.
  • Vector tile format styling.
  • Tessellation for lines and polygons is implemented here.
  • Nested message and enum types in Tile.
  • Utils which are used internally
  • Utilities for the window system.

Macros