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.
- Host: GitHub
- URL: https://github.com/auritylab/mapkit_snapshotter_flutter
- Owner: AurityLab
- License: bsd-3-clause
- Created: 2020-12-18T10:11:02.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-02-21T14:30:58.000Z (about 2 years ago)
- Last Synced: 2025-02-15T12:17:49.099Z (about 1 year ago)
- Language: Dart
- Homepage: http://pub.dev/packages/mapkit_snapshotter_flutter
- Size: 2.52 MB
- Stars: 0
- Watchers: 3
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
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) |
| --- | --- |
|  |  |
## 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