【发布时间】:2016-06-23 13:15:00
【问题描述】:
在 Google 地球中,我有一个 <gx:Track>,它有一个 <model> 元素 (https://developers.google.com/kml/documentation/kmlreference#model)。
该模型有一个<Link> 元素,其中<href> 定义了要使用的collada (dae) 模型。
在我的计算机上处理文件时,我可以手动将<href> 设置为本地路径(例如 c:\temp\model.dae")并且模型正确显示。
现在我想编写一个 Web 服务来动态返回 model.dae。我无法确定 google earth 对内容类型/内容处置/内容的期望格式。
我尝试了ContentType = "model/vnd.collada+xml" 和Content-Disposition = "attachment; filename=""collada.dae""",但 Google 地球无法加载模型而没有任何错误。
也试过"Content-Disposition", "inline;"
请谁能指出我正确的方向?
谢谢
【问题讨论】:
标签: google-earth collada