Skip to content

Commit

Permalink
add a section about blueprint with a small example and a link to the …
Browse files Browse the repository at this point in the history
…reference
  • Loading branch information
abey79 committed Nov 13, 2024
1 parent f765953 commit 46fe8e4
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions docs/content/howto/visualization/geospatial-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,23 @@ The map view supports several types of background maps, including a few from [Ma
A Mapbox access token is required to use them.
It must be provided either using the `RERUN_MAPBOX_ACCESS_TOKEN` environment variable or configured in the settings screen ("Settings…" item in the Rerun menu).
An access token may be freely obtained by creating a Mapbox account.


## Creating a map view from code

Like other views, the map view can be configured using the [blueprint API](https://rerun.io/docs/howto/configure-viewer-through-code):

```python
import rerun.blueprint as rrb

blueprint = rrb.Blueprint(
rrb.MapView(
origin="/robot/position",
name="map view",
zoom=16.0,
background=rrb.MapProvider.OpenStreetMap,
),
)
```

Check the [map view](../../reference/types/views/map_view.md) reference for details.

0 comments on commit 46fe8e4

Please sign in to comment.