Google Maps kml files

早过忘川 提交于 2019-11-29 08:57:36

If you load your KML through the API, with GGeoXml(), (V2), or KmlLayer(), (V3), then your data needs to be in a public server because it is parsed by Google's servers and they need to be able to get to it. If you load it with a third party extension then you can keep it private.

Third party extensions that can load and parse KML data are EGeoXml() by Mike Williams

http://econym.org.uk/gmap/extensions.htm#EGeoXml

and GeoXml() by Lance Dyas

http://www.dyasdesigns.com/geoxml/

but I believe that both of those are only available for the API V2 for now.

I just upgraded my Google Maps JavaScript API Application from v2 to v3, following these instructions.

My v2 application was using the EGeoXml extension referred to by @Marcelo in the accepted answer to locally parse KML data.

A substitution of geoxml3 in its place, as suggested by @geocodezip (a contributor to the project) in a comment, functioned immediately in my v3 application.

No, the data will not be public. I'm not sure about your other question though.

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