/syncfusion-flutter:syncfusion-flutter-mapsfrom Syncfusion Flutter Widgets
Implements Syncfusion Flutter Maps (SfMaps) for interactive geographical data visualization in Flutter apps. Use when working with shape layers, tile layers, choropleth maps, or map markers and overlays. This skill covers GeoJSON rendering, OpenStreetMap/Bing Maps integration, bubbles, legends, tooltips, zoom and pan, and spatial data visualization.
Ships in Syncfusion Flutter Widgets. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
This skill covers the Syncfusion Flutter Maps (SfMaps) widget for displaying and visualizing geographical and spatial data. The widget supports two primary layer types: MapShapeLayer (for GeoJSON-based shape rendering) and MapTileLayer (for web map tile services like OpenStreetMap and Bing Maps).
Use this skill when you need to:
The SfMaps widget is a comprehensive mapping solution for Flutter that supports two primary layer types:
MapShapeLayer - GeoJSON-based shape rendering for statistical and geographical data visualization. Features include choropleth maps with color/range mapping, bubble visualizations, data labels, shape selection, legends, tooltips, sublayers for hierarchical data, vector layers (arcs, circles, lines, polygons, polylines), markers, zoom and pan gestures, and offline support. Ideal for election maps, sales territories, census data, and region-based analytics.
MapTileLayer - Web map tile service integration for OpenStreetMap, Bing Maps, Google Maps, and TomTom. Features include real-world street maps with detailed geography, markers for location pins, sublayers, vector layers, zoom and pan with configurable levels, initial focal point and zoom, and WMTS URL templates. Requires internet connectivity. Perfect for store locators, delivery tracking, and navigation apps.
Both layer types support markers (built-in symbols and custom widgets), zoom/pan behavior with pinch/mouse wheel/double-tap gestures, vector layer overlays, accessibility features, RTL support, and theming through SfMapsTheme.
| Feature | MapShapeLayer | MapTileLayer |
|---|---|---|
| Data Source | GeoJSON files | Web tile services (URLs) |
| Offline Support | ✅ Yes (embedded GeoJSON) | ❌ Requires internet |
| Data Binding | ✅ Full support | ❌ Limited to markers |
| Choropleth Maps | ✅ Yes | ❌ No |
| Bubble Visualization | ✅ Yes | ❌ No |
| Data Labels | ✅ Yes | ❌ No |
| Shape Selection | ✅ Yes | ❌ No |
| Color Mapping | ✅ Yes | ❌ No |
| Legend | ✅ Yes | ❌ No |
| Markers | ✅ Yes | ✅ Yes |
| Zoom & Pan | ✅ Yes | ✅ Yes |
| Street Maps | ❌ No | ✅ Yes |
| Sublayers | ✅ Yes | ✅ Yes |
| Vector Layers | ✅ Yes (arc, circle, line, etc.) | ✅ Yes (arc, circle, line, etc.) |
| Tooltips | ✅ Yes (shapes & bubbles) | ❌ Limited |
| Real-world Detail | ❌ Limited | ✅ High detail |
📄 Read: references/getting-started.md
When to read: First-time setup, installation, basic map creation
Topics covered:
📄 Read: references/shape-layer.md
When to read: Working with vector maps, GeoJSON data, choropleth maps, data binding
Topics covered:
📄 Read: references/tile-layer.md
When to read: Integrating OpenStreetMap, Bing Maps, or other tile providers
Topics covered:
📄 Read: references/markers.md
When to read: Adding location markers, pins, or custom markers to maps
Topics covered:
📄 Read: references/data-labels.md
When to read: Displaying text labels on map shapes
Topics covered:
📄 Read: references/legend.md
When to read: Adding legends for shapes or bubbles
Topics covered:
📄 Read: references/tooltip.md
When to read: Adding interactive tooltips to map elements
Topics covered:
📄 Read: references/bubble.md
When to read: Visualizing data with size/color-coded bubbles on shapes
Topics covered:
📄 Read: references/color-mapping.md
When to read: Mapping data values to colors for shapes or bubbles
Topics covered:
📄 Read: references/selection.md
When to read: Enabling shape selection and handling user interactions
Topics covered:
📄 Read: references/zoom-pan.md
When to read: Enabling zoom, pan, and navigation features
Topics covered:
📄 Read: references/vector-layers.md
When to read: Adding additional vector overlays to maps
Topics covered:
📄 Read: references/shape-sublayer.md
When to read: Adding multiple layers and hierarchical data visualization
Topics covered:
📄 Read: references/customization.md
When to read: Customizing map appearance and styling
Topics covered:
📄 Read: references/accessibility.md
When to read: Implementing accessible map features for all users
Topics covered:
import 'package:flutter/material.dart';
import 'package:syncfusion_flutter_maps/maps.dart';
class MyShapeMap extends StatefulWidget {
@override
_MyShapeMapState createState() => _MyShapeMapState();
}
class _MyShapeMapState extends State<MyShapeMap> {
late MapShapeSource _dataSource;
@override
void initState() {
super.initState();
_dataSource = MapShapeSource.asset(
'assets/world_map.json',
shapeDataField: 'name',
);
}
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(title: Text('World Map')),
body: Padding(
padding: EdgeInsets.all(15),
child: SfMaps(
layers: [
MapShapeLayer(
source: _dataSource,
color: Colors.blue[100],
strokeColor: Colors.blue,
strokeWidth: 0.5,
),
],
),
),
);
}
}
import 'package:flutter/material.dart';
import 'package:syncfusion_flutter_maps/maps.dart';
class MyTileMap extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(title: Text('OpenStreetMap')),
body: SfMaps(
layers: [
MapTileLayer(
urlTemplate: 'url',
initialFocalLatLng: MapLatLng(27.1751, 78.0421),
initialZoomLevel: 5,
),
],
),
);
}
}
class ChoroplethMap extends StatefulWidget {
@override
_ChoroplethMapState createState() => _ChoroplethMapState();
}
class _ChoroplethMapState extends State<ChoroplethMap> {
late List<Model> _data;
late MapShapeSource _dataSource;
@override
void initState() {
super.initState();
_data = [
Model('India', 280),
Model('United States of America', 190),
Model('Brazil', 120),
];
_dataSource = MapShapeSource.asset(
'assets/world_map.json',
shapeDataField: 'name',
dataCount: _data.length,
primaryValueMapper: (int index) => _data[index].country,
shapeColorValueMapper: (int index) => _data[index].value,
shapeColorMappers: [
MapColorMapper(from: 0, to: 100, color: Colors.red),
MapColorMapper(from: 101, to: 300, color: Colors.green),
],
);
}
@override
Widget build(BuildContext context) {
return Scaffold(
body: SfMaps(
layers: [
MapShapeLayer(
source: _dataSource,
legend: MapLegend(MapElement.shape),
showDataLabels: true,
),
],
),
);
}
}
class Model {
Model(this.country, this.value);
final String country;
final double value;
}
class MapWithMarkers extends StatefulWidget {
@override
_MapWithMarkersState createState() => _MapWithMarkersState();
}
class _MapWithMarkersState extends State<MapWithMarkers> {
late List<MarkerData> _markers;
late MapShapeSource _dataSource;
@override
void initState() {
super.initState();
_markers = [
MarkerData('New York', 40.7128, -74.0060),
MarkerData('London', 51.5074, -0.1278),
MarkerData('Tokyo', 35.6762, 139.6503),
];
_dataSource = MapShapeSource.asset(
'assets/world_map.json',
shapeDataField: 'name',
);
}
@override
Widget build(BuildContext context) {
return Scaffold(
body: SfMaps(
layers: [
MapShapeLayer(
source: _dataSource,
initialMarkersCount: _markers.length,
markerBuilder: (BuildContext context, int index) {
return MapMarker(
latitude: _markers[index].latitude,
longitude: _markers[index].longitude,
iconColor: Colors.red,
iconType: MapIconType.circle,
size: Size(15, 15),
child: null,
);
},
),
],
),
);
}
}
class MarkerData {
MarkerData(this.city, this.latitude, this.longitude);
final String city;
final double latitude;
final double longitude;
}
// Common pattern for election results, sales data by region, etc.
late MapShapeSource _dataSource;
int? _selectedIndex;
_dataSource = MapShapeSource.asset(
'assets/usa_states.json',
shapeDataField: 'name',
dataCount: _statesData.length,
primaryValueMapper: (index) => _statesData[index].state,
shapeColorValueMapper: (index) => _statesData[index].value,
shapeColorMappers: [
MapColorMapper(from: 0, to: 50, color: Colors.red),
MapColorMapper(from: 51, to: 100, color: Colors.blue),
],
);
MapShapeLayer(
source: _dataSource,
legend: MapLegend(MapElement.shape),
showDataLabels: true,
onSelectionChanged: (int index) {
setState(() {
_selectedIndex = index;
});
},
selectionSettings: MapSelectionSettings(
color: Colors.yellow,
strokeColor: Colors.black,
strokeWidth: 2,
),
)
// Common pattern for store locator, delivery tracking
late List<LocationData> _locations;
late MapTileLayerController _controller;
@override
void initState() {
_controller = MapTileLayerController();
_locations = [/* your location data */];
super.initState();
}
MapTileLayer(
urlTemplate: 'url',
initialFocalLatLng: MapLatLng(37.7749, -122.4194),
initialZoomLevel: 10,
controller: _controller,
initialMarkersCount: _locations.length,
markerBuilder: (context, index) {
return MapMarker(
latitude: _locations[index].latitude,
longitude: _locations[index].longitude,
child: Icon(Icons.location_pin, color: Colors.red, size: 30),
);
},
zoomPanBehavior: MapZoomPanBehavior(
enableDoubleTapZooming: true,
enablePinching: true,
enablePanning: true,
),
)
// Common pattern for population density, sales volume visualization
_dataSource = MapShapeSource.asset(
'assets/world_map.json',
shapeDataField: 'name',
dataCount: _data.length,
primaryValueMapper: (index) => _data[index].country,
bubbleSizeMapper: (index) => _data[index].population,
bubbleColorValueMapper: (index) => _data[index].density,
);
MapShapeLayer(
source: _dataSource,
showDataLabels: true,
legend: MapLegend.bar(MapElement.bubble),
bubbleSettings: MapBubbleSettings(
maxRadius: 50,
minRadius: 10,
color: Colors.blue,
),
shapeTooltipBuilder: (context, index) {
return Padding(
padding: EdgeInsets.all(8),
child: Text(
'${_data[index].country}: ${_data[index].population}M',
style: TextStyle(color: Colors.white),
),
);
},
bubbleTooltipBuilder: (context, index) {
return Padding(
padding: EdgeInsets.all(8),
child: Text(
'Density: ${_data[index].density}/km²',
style: TextStyle(color: Colors.white),
),
);
},
)
// Show specific region with markers
late MapZoomPanBehavior _zoomPanBehavior;
@override
void initState() {
_zoomPanBehavior = MapZoomPanBehavior(
enableDoubleTapZooming: true,
enablePinching: true,
enablePanning: true,
);
super.initState();
}
// Button to fit bounds
void _fitToMarkers() {
setState(() {
// Define bounds to show all markers
_zoomPanBehavior.latLngBounds = MapLatLngBounds(
MapLatLng(southwestLat, southwestLng),
MapLatLng(northeastLat, northeastLng),
);
});
}
MapShapeLayer(
source: _dataSource,
zoomPanBehavior: _zoomPanBehavior,
// ... markers
)
// Add markers where user taps
late MapLatLng _markerPosition;
late MapShapeLayerController _controller;
late CustomZoomPanBehavior _zoomPanBehavior;
@override
void initState() {
_controller = MapShapeLayerController();
_zoomPanBehavior = CustomZoomPanBehavior()
..onTap = _handleTap;
super.initState();
}
void _handleTap(Offset position) {
_markerPosition = _controller.pixelToLatLng(position);
if (_controller.markersCount > 0) {
_controller.clearMarkers();
}
_controller.insertMarker(0);
}
MapShapeLayer(
source: _dataSource,
controller: _controller,
zoomPanBehavior: _zoomPanBehavior,
markerBuilder: (context, index) {
return MapMarker(
latitude: _markerPosition.latitude,
longitude: _markerPosition.longitude,
child: Icon(Icons.location_on, color: Colors.red),
);
},
)
class CustomZoomPanBehavior extends MapZoomPanBehavior {
late Function(Offset) onTap;
@override
void handleEvent(PointerEvent event) {
if (event is PointerUpEvent) {
onTap(event.localPosition);
}
super.handleEvent(event);
}
}
source - MapShapeSource with GeoJSON data and mappingscolor - Default color for all shapesstrokeColor - Border color for shapesstrokeWidth - Border width for shapeslegend - Legend configuration (bar or default)showDataLabels - Show labels on shapesinitialMarkersCount - Number of markers to displaymarkerBuilder - Builder function for markerscontroller - MapShapeLayerController for dynamic updateszoomPanBehavior - Zoom and pan configurationonSelectionChanged - Callback when shape is selectedselectionSettings - Selection appearance settingsshapeTooltipBuilder - Custom tooltip for shapesbubbleTooltipBuilder - Custom tooltip for bubblesmarkerTooltipBuilder - Custom tooltip for markerstooltipSettings - Tooltip styling configurationbubbleSettings - Bubble appearance settingsdataLabelSettings - Data label stylinglegendSettings - Legend appearance settingssublayers - List of MapSublayer widgetsloadingBuilder - Widget shown while loading GeoJSONurlTemplate - Tile provider URL in WMTS formatinitialFocalLatLng - Initial center point (latitude, longitude)initialZoomLevel - Initial zoom level (1-15+)initialMarkersCount - Number of markers to displaymarkerBuilder - Builder function for markerscontroller - MapTileLayerController for dynamic updateszoomPanBehavior - Zoom and pan configurationmarkerTooltipBuilder - Custom tooltip for markersinitialLatLngBounds - Bounds to fit on loadshapeDataField - Field name in GeoJSON to match with datadataCount - Number of data itemsprimaryValueMapper - Maps data index to shape identifierdataLabelMapper - Maps data index to label textshapeColorValueMapper - Maps data index to color valueshapeColorMappers - Color mappers for equal/range mappingbubbleSizeMapper - Maps data index to bubble sizebubbleColorValueMapper - Maps data index to bubble colorbubbleColorMappers - Color mappers for bubblesenableDoubleTapZooming - Enable double-tap to zoomenablePinching - Enable pinch zoom (mobile)enablePanning - Enable pan gestureenableMouseWheelZooming - Enable mouse wheel zoomshowToolbar - Show zoom toolbar (web)toolbarSettings - Toolbar appearancezoomLevel - Current zoom level (read/write)focalLatLng - Current center point (read/write)latLngBounds - Bounds to fit dynamicallyminZoomLevel - Minimum zoom levelmaxZoomLevel - Maximum zoom levelonZooming - Callback during zoomonPanning - Callback during panreferences/accessibility.md (opens in a new tab)references/bubble.md (opens in a new tab)references/color-mapping.md (opens in a new tab)references/customization.md (opens in a new tab)references/data-labels.md (opens in a new tab)references/getting-started.md (opens in a new tab)references/legend.md (opens in a new tab)references/markers.md (opens in a new tab)references/selection.md (opens in a new tab)references/shape-layer.md (opens in a new tab)references/shape-sublayer.md (opens in a new tab)references/tile-layer.md (opens in a new tab)references/tooltip.md (opens in a new tab)references/vector-layers.md (opens in a new tab)references/zoom-pan.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub syncfusion/boldcreate-plugins --plugin syncfusion-flutter14 skills in this plugin
/syncfusion-flutter-barcode-generatorImplements Syncfusion Flutter Barcode Generator (SfBarcodeGenerator) for generating 1D and 2D barcodes in Flutter apps. Use when working with QR codes, Data Matrix, Code128, EAN, UPC, or other machine-readable barcode formats. This skill covers barcode types, customization, sizing, text display, and integration into product labels, ticketing, or inventory systems./syncfusion-flutter-calendar-datepickerImplements Syncfusion Flutter Calendar (SfCalendar) and Date Range Picker (SfDateRangePicker) widgets for date and scheduling UIs in Flutter apps. Use when building appointment calendars, booking systems, date range selectors, or event scheduling interfaces. This skill covers calendar views, recurring events, date navigation, localization, callbacks, and customization./syncfusion-flutter-cartesian-chartsImplements Syncfusion Flutter Cartesian Charts (SfCartesianChart) for a wide range of 2D chart types in Flutter apps. Use when working with line, column, bar, area, spline, scatter, bubble, financial, stacked, or histogram charts. This skill covers axis types (NumericAxis, CategoryAxis, DateTimeAxis), zoom and pan, tooltip, trackball, legend, annotations, technical indicators, trendlines, and chart export./syncfusion-flutter-chatImplements Syncfusion Flutter Chat (SfChat) and AI AssistView (SfAIAssistView) widgets for conversational interfaces in Flutter apps. Use when building chat UIs, AI chatbot interfaces, or messaging screens with support for message bubbles, composers, and action buttons. This skill covers conversation area customization, placeholder screens, theming, RTL support, and AI assistant integration./syncfusion-flutter-circular-chartsImplements Syncfusion Flutter Circular Charts (SfCircularChart) for pie, doughnut, and radial bar data visualizations in Flutter. Use when working with PieSeries, DoughnutSeries, or RadialBarSeries using the syncfusion_flutter_charts package. This skill covers chart setup, data labels, legends, tooltips, selection, annotations, gradients, animation, accessibility, and chart export./syncfusion-flutter-datagridImplements Syncfusion Flutter DataGrid (SfDataGrid) for displaying and manipulating tabular data in Flutter applications. Use when working with data grids, data tables, or column-based data presentation using the syncfusion_flutter_datagrid package. This skill covers DataGridSource, GridColumn configuration, sorting, filtering, paging, editing, and selection.