mapkit_snapshotter_flutter 1.0.0 copy "mapkit_snapshotter_flutter: ^1.0.0" to clipboard
mapkit_snapshotter_flutter: ^1.0.0 copied to clipboard

PlatformiOS

A Flutter plugin which provides the MKMapScreenshoter.

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.

1
likes
110
pub points
27%
popularity

Publisher

verified publisherauritylab.com

A Flutter plugin which provides the MKMapScreenshoter.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

flutter, json_annotation

More

Packages that depend on mapkit_snapshotter_flutter