Skip to content

Commit

Permalink
Improve messages
Browse files Browse the repository at this point in the history
  • Loading branch information
abey79 committed Nov 5, 2024
1 parent 74c0322 commit 26067f9
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 43 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,11 @@ enum MapProvider: ubyte (
OpenStreetMap (default),

/// Mapbox Streets is a minimalistic map designed by Mapbox.
///
/// **Note**: Requires a Mapbox access token in the settings or using the `RERUN_MAPBOX_ACCESS_TOKEN` environment variable.
MapboxStreets,

/// Mapbox Dark is a dark-themed map designed by Mapbox.
///
/// **Note**: Requires a Mapbox access token in the settings or using the `RERUN_MAPBOX_ACCESS_TOKEN` environment variable.
MapboxDark,

/// Mapbox Satellite is a satellite map designed by Mapbox.
///
/// **Note**: Requires a Mapbox access token in the settings or using the `RERUN_MAPBOX_ACCESS_TOKEN` environment variable.
MapboxSatellite,
}
18 changes: 3 additions & 15 deletions crates/store/re_types/src/blueprint/components/map_provider.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion crates/viewer/re_component_ui/src/map_provider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ impl VariantAvailableProvider<MapProvider> for MapProviderVariantAvailable {
VariantAvailable::Yes
} else {
VariantAvailable::No {
reason_markdown: "Mapbox access token is not set. ".to_owned(),
reason_markdown: "A Mapbox access token is not available. You can set it in the \
settings or using the `RERUN_MAPBOX_ACCESS_TOKEN` environment variable."
.to_owned(),
}
};

Expand Down
6 changes: 0 additions & 6 deletions rerun_cpp/src/rerun/blueprint/components/map_provider.hpp

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 3 additions & 15 deletions rerun_py/rerun_sdk/rerun/blueprint/components/map_provider.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 26067f9

Please sign in to comment.