Codename One Google Native Maps Support
Allows Codename One developers to embed native Google Maps on iOS/Android or fallback to Codename One MapComponent on other platforms. Check out a brief tutorial on using this project here: https://www.codenameone.com/blog/new-improved-native-google-maps.html
The native maps are only supported on Android devices that have the Google Play store (e.g. not on Amazon Kindle) and on iOS devices. All other devices will show the MapComponent by default. Map component will be used on the simulator as well.
Since a native component is used placing overlays is problematic. You will need to use Dialogs and the API's of the MapContainer class to implement this.
You will need to follow their instructions to generate your map keys. Then define the following build arguments within your project:
Make sure to replace the values
obtained from the Google Cloud console by following the instructions for Android
NOTE: You can specify the iOS Google Maps version by setting the
var.ios.pods.GoogleMaps.version build hint, using Cocoapods version syntax. The default value is currently
~> 3.8. If you wish to use a newer version (e.g.
3.8), then you'll need to set your
ios.pods.platform build hint to a higher version, as newer versions of GoogleMaps have higher iOS version requirements.
~> 2.0 requires iOS 8 or higher.
~> 3.8 requires iOS 9.
For UWP, you'll need to define the
windows.bingmaps.token display property inside your app's init() method to your Bing Maps token. See instructons on generating a BingMaps token. E.g.
NOTE: Version 23 and higher require google play services 9.4.0 or higher, this library will automatically cause your app to build against 9.4.0 or higher. If you require compatibility with the older version (8.3.0), you'll need to install GoogleMaps.cn1lib v22 or earlier. You can download v22 here.
This project was migrated from an old project on Google code http://code.google.com/p/codenameone-google-maps