MapKit Snapshotter

A Flutter plugin which provides the MKMapScreenshoter. This integrates with the default Image Widget of Flutter.

Screenshots

Example 1 (Standard) Example 2 (Hybrid)

Usage

This plugin is only available on iOS as it uses the MapKit SDK.

Usage example:

final widget = Image(
  image: MapKitSnapshotterImage(
    MapKitSnapshotterOptions(
      /// Defines the region to capture.
      region: MapKitSnapshotterRegion(
        centerLatitude: 53.552363,
        centerLongitude: 9.990831,
        latitudeMeters: 2000,
        longitudeMeters: 2000,
      ),
      /// Additional properties for the snapshot.
      brightness: MapKitSnapshotterBrightness.light,
      mapType: MapKitSnapshotterMapType.hybridFlyover,
    ),
  ),
  height: 100,
  width: 100,
);

/// ... Use your widget

Features and bugs

Please file feature requests and bugs at the issue tracker.