google_maps_flutter_ios_sdk10

An iOS implementation of google_maps_flutter using Google Maps SDK 10.x.

Usage

This package is not the default endorsed version, so to select this SDK version for your implementation you must add a dependency on this package in your application's pubspec.yaml. Once you do, it will automatically replace the default implementation, then you can use google_maps_flutter as normal.

Package Dependencies

If you are authoring a package, please do not depend on one of these specific implementation packages unless you have a compelling reason to do so. Instead, just depend on google_maps_flutter, so that application developers can select the appropriate SDK version for their minimum iOS version target.

Setup

  1. Specify your API key in the application delegate ios/Runner/AppDelegate.swift:

    import UIKit
    import Flutter
    import GoogleMaps
    
    @UIApplicationMain
    @objc class AppDelegate: FlutterAppDelegate {
      override func application(
        _ application: UIApplication,
        didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
      ) -> Bool {
        GMSServices.provideAPIKey("YOUR KEY HERE")
        GeneratedPluginRegistrant.register(with: self)
        return super.application(application, didFinishLaunchingWithOptions: launchOptions)
      }
    }
    
  2. Google Maps SDK 10.x requires iOS 16, so if your application does not already require iOS 16 you must update your minimum iOS deployment version.

    Alternatively, you could use a different SDK version with a lower iOS version requirement.

Supported Heatmap Options

Field Supported
Heatmap.dissipating x
Heatmap.maxIntensity x
Heatmap.minimumZoomIntensity
Heatmap.maximumZoomIntensity
HeatmapGradient.colorMapSize