This plugin helps you leverage Google Maps Android SDK v2 and Google Maps SDK for iOS with your JavaScript. Both PhoneGap and Apache Cordova are supported.
###Example You can see an example here. phonegap-googlemaps-plugin-v1.2.5.apk
$> adb install phonegap-googlemaps-plugin-v1.2.5.apk
New versions will be announced through the official community. Stay tuned!
###What's up?
v.1.3.2
- Updated Google Maps SDK to 1.10.3 - should avoid plist problems on Xcode 7 now
v.1.3.1
- Fixed #630 (no google-volley dependencies anymore, increase start-up speed)
- Better URL Support on iOS for KML and GroundOverlay (support for any valid NSURL resource)
- Changed all http calls to https
- Updated Google Maps iOS SDK to 1.10.2
INFORMATION
In order to install the new version, you have to:
- Delete plugin
cordova plugin rm plugin.google.maps
- Delete Google Maps iOS SDK
cordova plugin rm com.googlemaps.ios
- Delete plugin.http.request
cordova plugin rm plugin.http.request
- Re-Install plugin from master (follow wiki for Mac/Linux/Windows)
cordova plugin add https://github.com/wf9a5m75/phonegap-googlemaps-plugin --variable API_KEY_FOR_ANDROID="YOUR_KEY" --variable API_KEY_FOR_IOS="YOUR_KEY"
If you have some weird compiling errors, you're probably missing some linked frameworks. Set the Target Membership https://www.youtube.com/watch?v=gr0QrEShPbQ or just delete your iOS platform and re-install.
Required XCode Version is 6.3+ (due to ABI changes) The minimum target iOS version for Google Maps SDK for iOS is now 7.0. Version 6.0 is no longer supported. This release requires the following additional dependencies in your project: Accelerate.framework, CoreBluetooth.framework, CoreGraphics.framework, Security.framework
This will be set automatically when you install with CLI.
BITCODE isn't supported currently. Google Maps hasn't update now. Just disable Bitcode in XCode 7 when you get compile errors.
v.1.2.9
Add:
- Implement maxWidth for Marker InfoWindow mapsplugin#503
v.1.2.8
Fixes
- Support for cordova-android 4.x (Cordova 5.x) -> many thanks to @wolf-s
- Fixed bug with base64 icons, icons from file
- Fixed mapsplugin#591
- Fixed play-service dependency mapsplugin#567
- Fixed plugin init on new cordova-android version
- Compatibility with https://github.com/crosswalk-project/cordova-plugin-crosswalk-webview (have a look at the wiki and the issues)
- Fixed mapsplugin#551
- Fixed crash on android when marker is not available mapsplugin#529
- Fixed .off() listener bug mapsplugin#517
Added
- pass "params" to marker and retrieve with marker.getParams() mapsplugin#54
v.1.2.7
- Support for cordova-android 4.x (Cordova 5.x) -> many thanks to @wolf-s
v1.2.5
- Add : The
opacity
andtileSize
properties has been added tomap.addTileOverlay()
- Add : Add marker animations:
DROP
andBOUNCE
- Add : Add INDOOR_BUILDING_FOCUSED & INDOOR_LEVEL_ACTIVATED events for indoor map events.
- Add plugin.google.maps.geometry.encoding.decodePath() & plugin.google.maps.geometry.encoding.encodePath()
- Update : v1.2.5 uses Google Play Services version 23.
- Added settings for watchdogtimer / complete rewrite of remote marker downloads
- The
icon
property of themap.addMarker()
acceptsfile://
&cdvfile://
protocol, and also the absolute file path. - Loading KML files from
file://
&cdvfile://
protocol. - And many bugs are fixed.
Check out the release notes.
###Documentation
-
Introduction
-
- Automatic Installation
- Tutorials
- Upgrade
-
- Create a LatLng object
- LatLng Class Reference
-
- Create a LatLngBounds object
- LatLngBounds Class Reference
-
- CameraPosition Class Reference
-
- Location Class Reference
-
- BaseClass Reference
##Crosswalk If you want to use crosswalk, just follow this easy documentation. Install Plugin with Crosswalk