本文介绍了本地 Web 服务器上的 Google Earth API、KML的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试从我们用来托管公司内部网的网络服务器加载 .kml,这行得通吗?!

I am trying to load a .kml from a webserver that we use to host our company intranet on, will this work?!

GE API 加载正常,但当前不显示 KML 文件?!此外,我似乎无法在不遗漏位的情况下粘贴代码,知道为什么会这样吗?!

The GE API loads up fine but does not currently display the KML file?! Also I cant seem to paste the code without bits being missed off, any idea why this might be?!

推荐答案

您是否使用资源的绝对 URL?IE.'http://192.168.1.2/whatever.kml'

Are you using absolute URL to the resources? i.e.'http://192.168.1.2/whatever.kml'

或者尝试使用google托管的kml来查看代码是否不起作用或kml是否错误例如:'http://sketchup.google.com/3dwarehouse/download?mid=28b27372e2016cca82bddec656c63017&rtyp=k2'

Or try to use google hosted kml to see if the code isn't working or the kml is wrongfor example:'http://sketchup.google.com/3dwarehouse/download?mid=28b27372e2016cca82bddec656c63017&rtyp=k2'

这篇关于本地 Web 服务器上的 Google Earth API、KML的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-31 16:10