website/docs/controls/map/index.md
import TabItem from '@theme/TabItem'; import Tabs from '@theme/Tabs'; import {CodeExample} from '@site/src/components/crocodocs';
Display interactive maps in your Flet apps with markers, overlays, and rich attributions provided by the flet-map extension. The control is built on top of flutter_map and supports multiple tile providers and layers.
| Platform | Windows | macOS | Linux | iOS | Android | Web |
|---|---|---|---|---|---|---|
| Supported | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
Add the flet-map package to your project dependencies:
requirements.txt or pyproject.toml.
</TabItem>
<CodeExample path={frontMatter.examples + '/basic/main.py'} language="python" />
<CodeExample path={frontMatter.examples + '/camera_controls/main.py'} language="python" />
<CodeExample path={frontMatter.examples + '/idle_camera/main.py'} language="python" />
<CodeExample path={frontMatter.examples + '/interaction_flags/main.py'} language="python" />
<CodeExample path={frontMatter.examples + '/multi_layers/main.py'} language="python" />
<CodeExample path={frontMatter.examples + '/overlay_images/main.py'} language="python" />
Map
TileLayer, MarkerLayer, OverlayImageLayer, CircleLayer, PolygonLayer, PolylineLayerMarker, CircleMarker, PolygonMarker, PolylineMarker, OverlayImage, RotatedOverlayImageSimpleAttribution, RichAttribution, SourceAttributionSee the types section for additional configuration helpers.