如何在 C# ASP.NET 中引用我的电脑上的 KML 文件而不是任何在线服务器
我有嵌入 Google 地球的网络应用程序,但到目前为止它没有做任何事情。我需要的是“引用”/解析我在电脑上创建的 KML 文件并将其加载到应用程序中。
我使用了一些来自 Google 的 java 脚本代码,其中获取了 KML 文件,但如果我正确的话,它是从 sketchup.google.com/ 获取的。
那么我可以用我自己的 KML 文件做同样的事情吗?
I have web application with Google Earth embedded but so far its not doing anything. What I need is to "reference"/parse a KML file to it which I created on my pc and load it up in the application.
I used some java script codes from Google where KML file is fetched but if I get it right it is taking it from sketchup.google.com/.
So can I do the same but with my own KML file?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要为您的网络服务器设置 KML MIME 类型,
只需按照Google 地图示例,并且将您的服务器设置为正确处理 KML mime 类型,您可以托管自己的 KML
You need to set the KML mime types for your web server
Just follow the Google maps examples, and with your server set to handle KML mime types correctly you can host your own KML's