如何在 C# ASP.NET 中引用我的电脑上的 KML 文件而不是任何在线服务器

发布于 2024-12-18 11:34:46 字数 205 浏览 5 评论 0原文

我有嵌入 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

—━☆沉默づ 2024-12-25 11:34:46

您需要为您的网络服务器设置 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文