Maximilian Ammann a2fea29347 Fix link
2021-12-29 22:00:23 +01:00
2021-12-28 17:20:37 +01:00
2021-12-29 12:41:58 +01:00
2021-12-29 10:50:50 +01:00
2021-12-29 14:06:21 +01:00
2021-12-29 22:00:18 +01:00
2021-12-19 16:40:14 +01:00
2021-12-19 16:44:01 +01:00
2021-12-29 12:41:45 +01:00
2021-11-28 20:30:12 +01:00
2021-12-28 15:57:57 +01:00
2021-12-29 22:00:23 +01:00
2021-12-20 19:53:05 +01:00

mapr

Logo

preview
Native Maps for Web, Mobile and Linux
A map rendering library written in Rust.

Description

mapr is a portable and performant vector maps renderer. We aim to support the web, mobile and desktop applications. This is achieved by the novel WebGPU specification. Plenty of native implementations are already implementing this specification. On the web it is implemented by Firefox, Chrome and Safari. There are also standalone implementations which directly use Vulkan, OpenGL or Metal as a backend. Those backends allow mapr to run on mobile and desktop applications.

Rust is used as a Lingua-franka on all platforms. This is made possible by WebAssembly which allows us to use Rust for web development.

The goal of mapr is to render maps in order to visualize data. Right now the goal of mapr is not to replace existing vector map renderers like Google Maps, Apple Maps or MapLibre. The current implementation serves as a proof-of-concept of the used technology stack. It is unclear whether the high-performance requirements of rendering maps using vector graphics are achievable using the current stack.

Current Features

  • Render single vector tiles
  • Render multiple vector tiles
  • Runs on Linux, Android, iOS, MacOS, Firefox and Chrome
  • Simple navigations by translating the camera
  • Load and tessellate vector tiles on demand
  • Navigation which "feels good"

Goals

  • Renders vector tiles.
  • Runs on:
    • Web via WebAssembly and WebGPU,
    • Linux (Xorg/Wayland) via Vulkan,
    • Android via OpenGL,
    • iOS via Metal.
  • Supports the TileJSON standard

Non-Goals

  • Rendering any kind of rasterized data

Building & Running

Now, to clone the project:

git clone git@github.com/maxammann/mapr

and then build it for running on a desktop:

cargo build

After that you can run it on your desktop:

cargo run --example desktop --

More information about building for different platforms can be found here.

Rust Setup

Install rustup because this is the recommended way of setting up Rust toolchains.

The toolchain will be automatically downloaded when building this project. See ./rust-toolchain.toml for more details about the toolchain.

Documentation

This generates the documentation for this crate and opens the browser. This also includes the documentation of every dependency.

cargo doc --open

You can also view the up-to-date documentation here.

Description
Native Maps for Web, Mobile and Desktop
Readme 36 MiB
Languages
Rust 93.5%
TypeScript 1.7%
Just 1.6%
WGSL 1.1%
JavaScript 1%
Other 0.9%