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

Commit

Permalink
edited for cordova 3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Ronald Klip committed Sep 18, 2013
1 parent daf19cb commit 0eee4c9
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 9 deletions.
19 changes: 13 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,27 @@
# PhoneGap iOS MapKit Plugin #
# PhoneGap/Cordova iOS MapKit Plugin #

## Requirements ##

Using this plugin requires [iOS PhoneGap](http://github.com/phonegap/phonegap) and the MapKit framework.
The plugin works with PhoneGap (Cordova) versions 2.8, 2.9 and 3.0.

The plugin works with PhoneGap (Cordova) versions 2.8 and 2.9.
## Adding the Plugin to your 3.0 project ##

## Adding the Plugin to your 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

1. Add the "MapKit" framework to your Xcode project (different in Xcode 3 and 4, search for instructions)
## 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 the .js file to your "www" folder on disk, and add reference(s) to the .js file as <script> tags in your html file(s)
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".

## Example ##

There is an example project in the example folder.

## License ##

MIT licensed
6 changes: 3 additions & 3 deletions plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
<platform name="ios">

<config-file target="config.xml" parent="/*">
<feature name="MapKitView">
<param name="ios-package" value="MapKitView"/>
</feature>
<feature name="MapKitView">
<param name="ios-package" value="MapKitView"/>
</feature>
</config-file>

<js-module src="www/MapKit.js" name="MapKit">
Expand Down

0 comments on commit 0eee4c9

Please sign in to comment.