在地图上显示kml文件 [英] Display kml file on a map

查看:403
本文介绍了在地图上显示kml文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的应用程序中,我想使用google map api v3在Google地图上显示kml文件。

当我在寻找解决方案时遇到了geoxml3,但我并不真正了解它的用途和用途。

任何人都可以解释是否使用geoxml3覆盖我的应用程序本地存储的kml文件的解决方案。

或者geoxml3的主要用途是什么? 用于显示KML的Google Maps API v3方法(使用基于图块的渲染)是 a>



开发人员指南(包括示例)



geoxml3 是在KmlLayer发布之前开发的,它将KML解析为本地Google Maps API对象(失去了基于图块渲染的好处,但允许访问单个对象)



KmlLayer要求Google的服务器可以访问KML。如果文件是本地文件,geoxml3可以访问本地文件(在某些情况下,使用某些浏览器)并在Google Map上显示它们,但请记住,除非拥有营业执照,否则要符合使用条款,您的地图必须公开可用(或者您的应用必须是IANAL,请自己阅读条款)。


In my application I would like to display a kml file over the google maps using google map api v3.

While I was searching for the solution I came across geoxml3, BUT i don't really understood its use and for what is used.

Can anyone explain if its the solution to use geoxml3 to overlay kml file stored locally in my application.

Or else what is the main use of geoxml3?

解决方案

The Google Maps API v3 method for displaying KML (using tile based rendering) is KmlLayer

Developer's Guide (including examples)

geoxml3 was developed before KmlLayer was released, it parses KML to native Google Maps API objects (losing the benefit of tile based rendering, but allowing access to individual objects)

KmlLayer requires the KML be accessible by Google's servers. If the file is local, geoxml3 can access local files (under some conditions, with some browsers) and render them on a Google Map, but remember, unless you have a Business License, to meet the terms of use, your map must be publicly available (or you app must be, IANAL, read the terms for yourself).

这篇关于在地图上显示kml文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆