Interactive playground for exploring and testing the ArcGIS Basemap Styles Service v2, including style browsing, live map updates, and parameter controls for language, worldview, and places.
- Dynamic style discovery from
/selfwith cache + fallback behavior. - Style Browser with family toggle, category tabs, grouped sections, and style info modal.
- Live MapLibre map updates from selected style and parameters.
- Dedicated parameter panels for Language, Worldview, and Places using
calcite-radio-button-group. - Parameter help text and direct links to official ArcGIS docs.
- Configurable language/worldview flag icons with sensitivity-safe fallback behavior.
- React + Vite
- Calcite Design System
- MapLibre GL JS
- Vitest + React Testing Library
- Node 25 (see
.nvmrc)
npm installnpm run devnpm test
npm run lintnpm run build
npm run preview- The repo includes a default playground preview key in
src/config/playgroundToken.jsfor deployed builds. - Optional override: set
VITE_DEFAULT_PLAYGROUND_API_KEYin.env.local. - The preview key is used only for in-app preview requests and is separate from the user-provided export key workflow.
Example override:
VITE_DEFAULT_PLAYGROUND_API_KEY=your_key_hereLanguage and worldview icons are configurable in src/config/languageFlagConfig.js.
languageFlagPreferences: preferred flag(s) for language codes without an explicit region.worldviewFlagPreferences: flag icon mapping for worldview options.
If no explicit region or preference is available, the UI falls back to neutral icons.