在iPhone上渲染KML和图像叠加层

问题描述

| 我有以下简单的kml,它引用了我想在地图视图上覆盖的图像文件
 <?xml version=\"1.0\" encoding=\"UTF-8\"?>
 <kml xmlns=\"http://earth.google.com/kml/2.2\">
 <Document>
 <name>Map Overlay</name><open>0</open>
 <GroundOverlay>
 <Icon>earthdata.png</Icon>
 <LatLonBox>
 <north>80.0</north><south>-80.0</south><east>180.0</east><west>-180.0</west>
 </LatLonBox>
 </GroundOverlay>
 <ScreenOverlay>
 <name>Colormap</name>
 <Icon>
 <href>icon.png</href>
 </Icon>
 <overlayXY x=\"0\" y=\"0\" xunits=\"fraction\" yunits=\"fraction\"/>
 <screenXY x=\"0\" y=\"0\" xunits=\"fraction\" yunits=\"fraction\"/>
 <size x=\"-1\" y=\"-1\" xunits=\"fraction\"  yunits=\"fraction\"/>
 </ScreenOverlay>
 </Document>
 </kml>
谁能让我知道如何在iPhone上呈现此图像视图,类似于该文件在google Earth上的显示方式。     

解决方法

        使您的KML进入IOS Google Earth 1)前往Google Maps http://maps.google.com/ 2)选择“我的地图” 2)选择“制作新地图” 3)点击“导入”。 4)选择要添加的kml / kmz文件。 5)在iphone / ipad Google Earth应用程序中,选择“图层” 6)选择“我的地图”。 现在,您导入的kml / kmz数据将显示在IOS应用程序中,就像在完整的Google Earth Client中一样。