flutter_maps 0.1.0 flutter_maps: ^0.1.0 copied to clipboard
Native maps for Flutter, embedded as a native view using the PlatformView API.
Maps for Flutter #
Native maps for Flutter, embedded as a native view using the PlatformView API.
iOS (Apple Maps) | Android (Google Maps) |
---|---|
Setup #
Setup works as for any Flutter plugin, expect the caveats outlined below:
iOS #
Since the PlatformView api is still only a preview, you need to set the following key to true in your Info.plist
:
<plist>
<dict>
<key>io.flutter.embedded_views_preview</key>
<true/>
</dict>
</plist>
Android #
Google Maps requires that you get an API key, place it in your AndroidManifest.xml
:
<manifest>
<application>
<meta-data
android:name="com.google.android.geo.API_KEY"
android:value="YOUR API KEY HERE" />
</application>
</manifest>
Features #
Currently no features at all are implemented, it only shows an empty map not centered on anything in particular.
The goal is to follow google_maps_flutter
closely, and have the same features where it makes sense and can be reasonably implemented on both iOS and Android.