title: Using maps in a native App
body: <p>Building an ios app using apache cordova 2.1. Building and styling is going fine but maps are not.</p>
  
  <p>I found a plugin for the maps but simply cannot get it to work:
  <a href="https://github.com/phonegap/phonegap-plugins/tree/master/iOS/MapKit" rel="nofollow">https://github.com/phonegap/phonegap-plugins/tree/master/iOS/MapKit</a></p>
  
  <p>I also found an example html file but could :
  <a href="https://github.com/phonegap/phonegap-plugins/tree/master/iPhone/MapKitPlug/example" rel="nofollow">https://github.com/phonegap/phonegap-plugins/tree/master/iPhone/MapKitPlug/example</a></p>
  
  <p>1/
  So i added the MapKit framework into xcode which was pretty straight forward:
  <a href="http://blog.thinketg.com/blog/david-brainer-banker/xcode-4-tips-adding-frameworks-to-your-project" rel="nofollow">http://blog.thinketg.com/blog/david-brainer-banker/xcode-4-tips-adding-frameworks-to-your-project</a></p>
  
  <p>2/
  Added the .m and .h files</p>
  
  <p>3/
  Added and linked the .js file to my index.html</p>
  
  <p>4/
  copied the example html above.</p>
  
  <p>5/
  Added the Mapkit to the .plist file as per the instructions</p>
  
  <p>When I try to run the map I get the following errors:</p>
  
  <pre><code>2012-11-05 14:21:29.505 sawdaysApp[25398:c07] Multi-tasking -&gt; Device: YES, App: YES
  2012-11-05 14:21:30.895 sawdaysApp[25398:c07] CDVPlugin class MapKitView (pluginName: MapKitView) does not exist.
  2012-11-05 14:21:30.895 sawdaysApp[25398:c07] ERROR: Plugin 'MapKitView' not found, or is not a CDVPlugin. Check your plugin mapping in Cordova.plist.
  2012-11-05 14:21:30.896 sawdaysApp[25398:c07] FAILED pluginJSON = [null,"MapKitView","showMap",[]]
  2012-11-05 14:21:30.896 sawdaysApp[25398:c07] CDVPlugin class MapKitView (pluginName: MapKitView) does not exist.
  2012-11-05 14:21:30.896 sawdaysApp[25398:c07] ERROR: Plugin 'MapKitView' not found, or is not a CDVPlugin. Check your plugin mapping in Cordova.plist.
  2012-11-05 14:21:30.897 sawdaysApp[25398:c07] FAILED pluginJSON = [null,"MapKitView","setMapData",[{"diameter":1000,"offsetTop":25,"lon":-123.104446,"buttonCallback":"cbMapCallback","lat":49.281467999999997,"height":360,"atBottom":true}]]
  </code></pre>
  
  <p>I assuming that the error is with the MapKitView in the CDVPluggin, but really not sure.</p>
  
  <p>Has anyone had any experience with this and succeeded? </p>