Walkers, a map widget for Rust
Walkers is a slippy maps widget for egui, similar to very popular Leaflet, but written in Rust. It compiles to native applications as well as WASM. See the online demo here.
It supports OpenStreetMap, mapbox, and compatible tile servers.
Before deploying your application, please get yourself familiar with the OpenStreetMap usage policy, and consider donating the OpenStreetMap Foundation.
Quick start
Walkers has three main objects. Tiles
downloads images from a tile map provider
such as OpenStreetMap and stores them in a cache, MapMemory
keeps track of
the widget's state and Map
is the widget itself.
use ;
use ;
use ;
You can see a more complete example here.
Running demos
Walkers suports numerous build options, such as Android and WASM. They all share
a common library - demo
, but require a different build workflow, not
necessarily compatible with Cargo alone.
Native
To enable mapbox layers, you need to define MAPBOX_ACCESS_TOKEN
environment
variable before building. You can obtain one, by creating a
mapbox account.
Web / WASM
Android
You need to have Android SDK and cargo-ndk installed.