An open API service indexing awesome lists of open source software.

https://github.com/auritylab/mapkit_snapshotter_flutter

A Flutter plugin which provides the MKMapScreenshoter.
https://github.com/auritylab/mapkit_snapshotter_flutter

Last synced: 11 months ago
JSON representation

A Flutter plugin which provides the MKMapScreenshoter.

Awesome Lists containing this project

README

          

# MapKit Snapshotter

A Flutter plugin which provides
the [MKMapScreenshoter](https://developer.apple.com/documentation/mapkit/mkmapsnapshotter). This integrates with the
default [Image](https://api.flutter.dev/flutter/widgets/Image-class.html) Widget of Flutter.

## Screenshots

| Example 1 (Standard) | Example 2 (Hybrid) |
| --- | --- |
| ![](https://github.com/AurityLab/mapkit_snapshotter_flutter/raw/master/doc/image/demo_screenshot_1.png "MapKit Snapshotter example with standard map type") | ![](https://github.com/AurityLab/mapkit_snapshotter_flutter/raw/master/doc/image/demo_screenshot_2.png "MapKit Snapshotter example with hybrid map type") |

## Usage

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

Usage example:

```dart
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][tracker].

[tracker]: https://github.com/AurityLab/mapkit_snapshotter_flutter/issues