开发者

Using MKMapView with kml files

开发者 https://www.devze.com 2023-01-07 03:00 出处:网络
Just wondering whats the best way to approach this ? I\'ve looked around for source code to gain an understa开发者_如何学Gonding of how this is done. But there is very little out there

Just wondering whats the best way to approach this ?

I've looked around for source code to gain an understa开发者_如何学Gonding of how this is done. But there is very little out there

Any advice.

Thanks.


Apple has samplecode for this. http://developer.apple.com/library/ios/samplecode/KMLViewer/Introduction/Intro.html


Just for info, the default "maps" application supports (basic) display of kml files if you give URL to a kml file on the web. You can open it from your application using openURL for UIApplication and give the URL to the KML file as parameter.


Cant use kml files directly with MKMapView:

Use NSXMLParser , and parser (probably title, latitude, longitude).

0

精彩评论

暂无评论...
验证码 换一张
取 消