GithubHelp home page GithubHelp logo

96fps / maplibre-rs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from maplibre/maplibre-rs

0.0 0.0 0.0 4.59 MB

Experimental Maps for Web, Mobile and Desktop

License: Apache License 2.0

JavaScript 0.96% Objective-C 0.07% Java 0.17% Rust 93.87% Kotlin 0.08% TypeScript 1.50% Swift 0.30% Nix 0.16% HTML 0.10% EJS 0.05% Just 1.61% WGSL 1.13%

maplibre-rs's Introduction

maplibre-rs

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

Project State

This project is in a proof-of-concept state. The proof of concept is done except for text rendering. The Rust ecosystem is suited very well for this project.

In the future, this project could be adopted and supported by Maplibre to implement a next-gen mapping solution.

๐Ÿ“ฐ We recently released a paper about maplibre-rs called maplibre-rs: toward portable map renderers!

Description

maplibre-rs is a portable and performant vector maps renderer. We aim to support 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 that directly use Vulkan, OpenGL or Metal as a backend. Those backends allow maplibre-rs 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 maplibre-rs is to render maps to visualize data. Right now the goal of maplibre-rs 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.

Demos

Current Features

  • Runs on Linux, Android, iOS, macOS, Firefox and Chrome
  • Render a vector tile dataset
  • Simple navigation powered by winit
  • Multithreaded on all platforms
  • Querying feature data

Missing Features

  • Rendering Text
  • Per-Feature Rendering
  • Rendering:
    • Labels
    • Symbols
    • Raster data
    • 3D terrain
    • Hill-shade (DEM)
  • Collision detection
  • Support for:
    • GeoJSON
  • API for:
    • TypeScript
    • Swift
    • Java/Kotlin

Building & Running

Clone the project

git clone https://github.com/maplibre/maplibre-rs.git

Build and run it on a desktop

cargo run -p maplibre-demo

More information about running the demos on 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.

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

Book

The maplibre-rs book features a high-level overview over the project from a user and development perspective.

RFCs

We established an RFC process which must be used to describe major changes to maplibre-rs. Current RFCs can be browsed in the book.

Citing

If you wish to cite this project in a scientific publication use the following format:

@article{maplibre_rs,
	title        = {maplibre-rs: toward portable map renderers},
	author       = {Ammann, M. and Drabble, A. and Ingensand, J. and Chapuis, B.},
	year         = 2022,
	journal      = {The International Archives of the Photogrammetry, Remote Sensing and Spatial Information Sciences},
	volume       = {XLVIII-4/W1-2022},
	pages        = {35--42},
	doi          = {10.5194/isprs-archives-XLVIII-4-W1-2022-35-2022},
	url          = {https://www.int-arch-photogramm-remote-sens-spatial-inf-sci.net/XLVIII-4-W1-2022/35/2022/}
}

Acknowledgements

The renderer of maplibre-rs is heavily based on the renderer of bevy. Bevy's renderer was forked into this project in order to have a solid and generic base.

maplibre-rs's People

Contributors

maxammann avatar nyurik avatar drabble avatar tristramg avatar jackson211 avatar julienr avatar karisair avatar ybiletskyi avatar bezpowell avatar birkskyum avatar drwestco avatar fabianwildgrube avatar hdevalence avatar 96fps avatar yzsolt avatar vladdoster avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.