This plugin enables you to use iOS' native MapKit framework. It is based on the original MapKit plugin (https://github.com/phonegap/phonegap-plugins/tree/master/iOS/MapKit).
The plugin works with PhoneGap (Cordova) versions 2.8, 2.9 and 3.0 / 3.1.
- run 'cordova plugin add https://github.com/RonaldPK/MapKit-iOS.git' (replace 'cordova' by 'phonegap local' if that's your cli)
- copy map-close-button.png from plugins/com.contentecontent.cordova.plugins.mapKit to platforms/ios/www
- Add the "MapKit" framework to your Xcode project (different in Xcode 3 and 4/5, search for instructions)
- Add the .h and .m files to your Plugins folder in your project
- Add MapKit.js file to your "www" folder on disk, and add reference(s) to the .js file as <script> tags in your html file(s)
- Add map-close-button.png to your "www" folder on disk.
- In your app's config.xml, add a feature entry. Set feature name to "MapKitView", and param value to "MapKitView".
- Add the compiler flag "-fobjc-arc" (without the quotes) to the plugin's three .m files: select Target > Build Phases > Compile Sources.
There is an example project in the example folder.
MIT licensed