Google Earth API, KML on local Web Server [closed]

纵饮孤独 提交于 2020-02-04 05:38:05

问题


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

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?!


回答1:


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

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



来源:https://stackoverflow.com/questions/13251562/google-earth-api-kml-on-local-web-server

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