Maps Viewer turns VS Code into a practical GeoJSON inspection workspace. Open one or many .geojson files on an interactive Mapbox map, compare layers side by side, inspect feature attributes, and save reusable map projects without leaving your editor.
Highlights
Group layers: create groups, drag profiles in or out, apply shared group color and visibility, and restore profiles back to standard layers when a group is removed.
Country View: limit the map to a selected country, fit the camera to that area, and prevent accidental navigation away from the chosen scope.
Zoom onto features: choose a primary key, browse feature records, and jump directly to the selected geometry from the layer panel or command palette.
Point Render: optionally collapse line and polygon features into fixed-size dots only when they become too small to read at the current zoom.
Primary key controls: select a property per layer, search and sort records, hide/show individual records, and keep feature-level navigation tied to real GeoJSON attributes.
What You Can Do
Right-click any .geojson file and choose View in Maps.
Add multiple GeoJSON files to the same map panel for comparison.
Rename layers, change colors, tune stroke width, and hide/show layers or individual records.
Hover or click map features to inspect structured properties.
Save your current view as a named project and reopen it later with layers, camera, country scope, primary keys, and styling restored.
Switch between standard and satellite basemaps.
First-Time Setup
Maps Viewer uses Mapbox GL JS for the basemap and includes a public token for normal use. No token setup is required. Run Maps Viewer: Set Mapbox Token... only if you want to override the bundled token with your own Mapbox public token.
Privacy
Maps Viewer does not collect telemetry. Your GeoJSON files stay on your machine. The bundled Mapbox token, or your custom token if configured, is used only for Mapbox tile/style requests.
Commands
Command
Purpose
Maps Viewer: View in Maps
Open a GeoJSON file in the map viewer
Maps Viewer: Add File to Current Map...
Add more layers to the current map
Maps Viewer: Set Primary Key...
Choose the property used for feature records
Maps Viewer: Locate Feature...
Jump to a feature by primary-key value
Maps Viewer: Set Country Scope...
Choose a country view or return to world view
Maps Viewer: Save as Project...
Save the current map as a reusable project
Maps Viewer: Set Mapbox Token...
Override the bundled token with your own Mapbox public token