简体   繁体   English

我们可以在iOS设备上使用Mapkit框架在Google地图上显示KML数据吗?

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

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. 问题在于后端服务器使用MapXtreme生成GIS数据,并且没有适用于iOS设备的MapX客户端。 The server people tell me that they can send me KML files for generating the maps. 服务器人员告诉我,他们可以向我发送KML文件以生成地图。

Is there any way to use KML files to display geographic information on Google maps using Mapkit framework? 是否可以通过Mapkit框架使用KML文件在Google地图上显示地理信息?

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. 在一个答案中,vy32共享了Google Earth的教程站点的链接,以创建KML文件。 He also argues that it can be used in Mapkit. 他还争辩说它可以在Mapkit中使用。 The question remains ...how de we do it?? 问题仍然存在……我们该怎么做?

There's no built-in functionality for this. 没有内置功能。 Apple provide sample code that parses a subset of KML that you can use. Apple提供了用于解析您可以使用的KML子集的示例代码

Google web can take a kml URL in place of a street address.Have you considered using webkit to show Google web map? Google Web可以使用kml URL代替街道地址。您是否考虑过使用webkit显示Google Web地图?

Note: The kml url can be a CGI query into a database. 注意: kml URL可以是对数据库的CGI查询。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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