简体   繁体   中英

How can I use specific Google Maps maps in an iOS app?

I'm making an app with a MapView for iOS. I would like it to add all the content of http://maps.fon.com/mapContent?lt=50.50388700000001&ln=4.469935999999928&zm=6 in my app.

This is the basic of my .h-file

@interface TDW_BFSecondViewController : UIViewController {

    MKMapView *mapview;

}

@property (nonatomic, retain) IBOutlet MKMapView *mapview;

I don't know what's the best way to do it?

Thanks a lot!

If you need the exact copy of this page you can display a webview of this map.

But If you want to use mapkit (google map native IOS) you should add mannualy a custom annotation per points ...

You can find where you want in a my maps area of google maps and then specify that area through a UIWebview.

Hope that helps

If you are using interface builder or storybuilder drag over a web view or just declare it as you have with your map view. You can also put:

[webview loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://maps.fon.com/mapContent?lt=50.50388700000001&ln=4.469935999999928&zm=6"]]];

That code shows the web view with the URL you mentioned earlier.

I hope that helps!

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