Can we display KML data on Google maps using Mapkit framework on iOS devices?

a 夏天 提交于 2020-01-01 12:42:29

问题


I have a requirement wherein I have to show some maps and some data corresponding to that maps. The problem is that the backend server uses MapXtreme to generate GIS data, and there is no MapX client for iOS devices. The server people tell me that they can send me KML files for generating the maps.

Is there any way to use KML files to display geographic information on Google maps using Mapkit framework?

EDIT: I have gone through a similar question in this link. In one of the answer vy32 shared a link of Google earth's tutorial site to create a KML file. He also argues that it can be used in Mapkit. The question remains ...how de we do it??


回答1:


There's no built-in functionality for this. Apple provide sample code that parses a subset of KML that you can use.




回答2:


Google web can take a kml URL in place of a street address.Have you considered using webkit to show Google web map?

Note: The kml url can be a CGI query into a database.



来源:https://stackoverflow.com/questions/4825412/can-we-display-kml-data-on-google-maps-using-mapkit-framework-on-ios-devices

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!