Skip to content
This repository has been archived by the owner on Apr 22, 2018. It is now read-only.

RonaldPK/MapKit-iOS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PhoneGap/Cordova iOS MapKit Plugin

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).

Requirements

The plugin works with PhoneGap (Cordova) versions 2.8, 2.9 and 3.0 / 3.1.

Adding the Plugin to your 3.0 project

  1. run 'cordova plugin add https://github.com/RonaldPK/MapKit-iOS.git' (replace 'cordova' by 'phonegap local' if that's your cli)
  2. copy map-close-button.png from plugins/com.contentecontent.cordova.plugins.mapKit to platforms/ios/www

Adding the Plugin to your 2.8/2.9 project

  1. Add the "MapKit" framework to your Xcode project (different in Xcode 3 and 4/5, search for instructions)
  2. Add the .h and .m files to your Plugins folder in your project
  3. 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)
  4. Add map-close-button.png to your "www" folder on disk.
  5. In your app's config.xml, add a feature entry. Set feature name to "MapKitView", and param value to "MapKitView".
  6. Add the compiler flag "-fobjc-arc" (without the quotes) to the plugin's three .m files: select Target > Build Phases > Compile Sources.

Example

There is an example project in the example folder.

License

MIT licensed

About

Cordova MapKit plugin for iOS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published