简体   繁体   中英

How to display a map by mapkit framework in iphone using URL like http://maps.google.com…[it opens map as new App]

When we open : http://maps.google.com & type : category:"motel"+California+USA we get the California region map with the motels in that region. This is done by using MapsApp in iphone. But it closes the current application & opens the map as New App.

Now is it possible to do the same thing with mapkit framework? How to use URL in Mapkit like

http://maps.google.com?q=category ....

Add an MKMapView to your application. Take a look at "Specifying the Visible Map Region" to center it on California.

As for showing motels, you would have to handle that manually. You could use a service to find the hotels and then add them to your MKMapView as MKAnnotations.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM