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 rasters.

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.

Errors which can happen in various parts of the library.

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.

Stages for requesting and preparing data

Vector tile format styling.

Tessellation for lines and polygons is implemented here.

Utils which are used internally

Utilities for the window system.

Macros

Macro to define a new label trait

Structs

The Map defines the public interface of the map renderer.

Stores the map configuration before the map’s state has been fully initialized.