2

I am using PhoneGap to build applications for iOS and Android.

I want to open the native map application on iOS with multiple pins. I am able to open the native map on iOS device using their Maps URL scheme using a ?q=lat,long parameter

http://developer.apple.com/library/ios/#featuredarticles/iPhoneURLScheme_Reference/Articles/MapLinks.html

Is it possible to open the native maps app and showing multiple pings instead of only one?

I have tried enough to search for it but there isn't enough documentation to answer my question.

Thank you for the help

Anup
  • 627
  • 5
  • 19

1 Answers1

-1

Create an MKMapItem for each pin you want to display, save the MKMapItems to an array, and then use openMapsWithItems:launchOptions: to send the array to the Maps app. The Maps app will display a pin for each item in the array.

I have not used this myself, but it's from Apple's documentation at:

http://developer.apple.com/library/ios/documentation/MapKit/Reference/MKMapItem_class/Reference/Reference.html#//apple_ref/occ/clm/MKMapItem/openMapsWithItems:launchOptions:

Alan Kinnaman
  • 877
  • 12
  • 20
  • Thank you for your reply, but I am not using native Map SDK for iOS. I am using PhoneGap framework – Anup Aug 16 '13 at 22:26