Overview
Map view transforms geographic data into an interactive map display with:- Interactive maps powered by mapping libraries
- Marker clustering for dense data sets
- Popup information showing record details
- Zoom and pan controls for navigation
Map view requires a Geography or Geometry column type to store location data (latitude/longitude coordinates or GeoJSON).
Configuration
Geographic Data Column
The core configuration for Map view is selecting which column contains the geographic data.The ID of the column containing geographic data (coordinates or GeoJSON)
Supported Data Formats
Map view supports various geographic data formats:- Lat/Long Coordinates:
"40.7128,-74.0060"(latitude, longitude) - GeoJSON Point:
{"type": "Point", "coordinates": [-74.0060, 40.7128]} - GeoJSON Polygon: For area boundaries
- GeoJSON LineString: For routes and paths
Use Cases
Store Locations
Display retail locations, offices, or branch networks on a map
Delivery Routes
Track delivery addresses and optimize routing
Property Listings
Show real estate listings with location-based search
Event Venues
Map conference venues, meetup locations, or tour stops
Creating a Map View
Add a Geography column
First, ensure your table has a column for geographic data:
- Click + to add a new column
- Choose Geometry or GeoJSON field type
- Name it (e.g., “Location”)
- Save the column
Create the Map view
- Click Create View in the views sidebar
- Select Map as the view type
- Name your view (e.g., “Store Locations Map”)
- Choose the geographic data column
- Click Create View
Working with Map View
Adding Records
Add new records directly from the map:- Click the Add Marker button
- Click on the map to place a marker
- Fill in the record details in the popup form
- Save the record
Viewing Record Details
Click any marker on the map to:- View record details in a popup
- Edit field values
- Open the full record
- Delete the record
Filtering and Searching
Apply filters to control which records appear on the map:- Click the Filter button
- Add filter conditions
- The map updates to show only matching records
Marker Clustering
When multiple markers are close together, they automatically cluster:- Clusters show the number of markers
- Click a cluster to zoom in
- Zoom in enough to see individual markers
API Integration
Create and manage Map views via the API:Create Map View
Update Map View
Best Practices
Validate coordinate data
Validate coordinate data
Ensure latitude and longitude values are valid:
- Latitude: -90 to 90
- Longitude: -180 to 180
- Use consistent format across records
Use marker clustering
Use marker clustering
For large datasets (100+ locations), enable clustering to improve performance and readability.
Optimize popup content
Optimize popup content
Show only essential fields in marker popups:
- Name or identifier
- 2-3 key details
- Link to full record
Set appropriate default view
Set appropriate default view
Configure the default zoom and center to show your data effectively:
- Zoom out for nationwide/global data
- Zoom in for city-level data
- Center on the average location of your records
Technical Details
MapView Model
The MapView model frompackages/nocodb/src/models/MapView.ts contains:
Geographic Column Types
Map view works with these column types:- Geometry: Stores geographic shapes and coordinates
- GeoJSON: Stores GeoJSON-formatted geographic data
- Custom formula fields that output coordinate strings
Limitations
Related
- Grid View - Traditional spreadsheet view
- Fields - Learn about field types including Geometry
- Filters & Sorting - Apply filters to map data