Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

lonboard interop

A small lonboard map driven by manywidgets.lonboard controls — a LayerToggle, a FilterBinder (RangeSlider → filter_range), and a LayerFilter (category checkboxes) — laid out beside the map with Column. Works live and in static export (no kernel); the carto basemap tiles load from the network when you view the page.

Controls beside the map

Toggle visibility, filter by value range, and filter by category.

Data-driven styling + legend

Colour the points by a data attribute (here, category) with a per-row get_fill_color array, and show a matching Legend built from the same palette so the map and legend stay consistent.

Raster layer switcher

A Map can hold several raster (BitmapTileLayer) layers; a LayerToggle per layer makes a layer switcher — just stack the toggles in a Column. Each toggle writes its layer’s visible, so this works live and in static export (the raster tiles load from the network when viewed).

Fly to presets

MapFlyer repositions an already-rendered map from the browser — no kernel, so it works in this statically-exported page. Click a button to fly.