开发者

Efficient KML Rendering as a MapKit overlay on the iPhone

开发者 https://www.devze.com 2023-02-21 03:18 出处:网络
Howdy all. I\'m working o开发者_StackOverflow中文版n a project that will (ideally) require the rendering of large, complex KML files as an overlay/overlays on a MapKit MKMapView.

Howdy all. I'm working o开发者_StackOverflow中文版n a project that will (ideally) require the rendering of large, complex KML files as an overlay/overlays on a MapKit MKMapView.

I've tried the KML parser that Apple's sample documentation provides, and it's rather incapable of performing as needed. Now, I'm wondering if anyone knows of another available solution.


If you are referring to Apple's KMLViewer, it is using NSXMLParser, which is the slowest method.

Efficient KML Rendering as a MapKit overlay on the iPhone

I'm not sure how fast you need, if TouchXML's performance is good enough for you, you should take a look at Simple-KML. If that's not fast enough, I think you should implement your own parser based on TBXML, but without validation + XPath support. (Let's assume Google's data is always rite ;-)

Edit: Another user find Simple-KML is not fast enough and use TBXML directly also

Extending iOS KMLViewer Sample to Handle KML NetworkLink Elements

0

精彩评论

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

关注公众号