AppleMapsStaticAdapter class

Enables MapWidget to use Apple Maps Web Snapshots API.

Getting started

You should set MapAdapter.defaultInstance. In the main function of your application:

import 'package:maps/maps.dart';

void main() {
  MapAdapter.defaultInstance = const AppleMapsAdapter(
    requestSigner: AppleMapsRequestSigner.fromPrivateKey(
      // ...
    ),
  );

  // ...

  runApp(yourApp);
}
Inheritance

Constructors

AppleMapsStaticAdapter({@required AppleMapsRequestSigner requestSigner})
const

Properties

hashCode int
The hash code for this object.
read-onlyinherited
productName String
Name of the product for debugging purposes. Example: "Google Maps".
read-onlyoverride
requestSigner AppleMapsRequestSigner
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

buildMapWidget(MapWidget widget, Size size) Widget
Constructs a Flutter widget.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited