使用 Google 地图 API 添加 3D 模型 KMZ:可能吗?
Adding 3D model KMZ with Google Maps API: is it possible?
我想知道是否可以使用 Google 地图 API 将 Sketchup 中导出的 KMZ 格式的 3D 模型添加到 Google 地图中。我能够添加包含简单数据的 KMZ 层作为地标等,但是当我尝试加载 3D 模型 KMZ 时,地图只显示默认的房屋文件图标。
测试地图可以在这里访问:http://thebob.com.br/maptest/kmz_test.html
KMZ 文件托管于此:https://sites.google.com/site/dmgckmlfiles/kml-files/Bulk_carrier_1509.kmz
此时我只是猜测不可能将这样的 3D 模型添加到 Google 地图中(因为如果我通过“我的地图”导入文件会发生完全相同的事情),但我想在放弃之前确保这一点。
提前感谢您提供任何信息!
好吧,如果您在 Google JavaScript API, Yes this API does support the KMZ as you can see in this link 中了解有关受支持的 KML 元素的信息。但是3D对象不是。
此外,根据此 , that 3D is not yet features in Javascript API. Closest things to this are Styled Maps. Only the Android 实施现已可用。
但我发现这个 tutorial 如果您仍然想要 3D 对象,它可以帮助您。
我想知道是否可以使用 Google 地图 API 将 Sketchup 中导出的 KMZ 格式的 3D 模型添加到 Google 地图中。我能够添加包含简单数据的 KMZ 层作为地标等,但是当我尝试加载 3D 模型 KMZ 时,地图只显示默认的房屋文件图标。
测试地图可以在这里访问:http://thebob.com.br/maptest/kmz_test.html
KMZ 文件托管于此:https://sites.google.com/site/dmgckmlfiles/kml-files/Bulk_carrier_1509.kmz
此时我只是猜测不可能将这样的 3D 模型添加到 Google 地图中(因为如果我通过“我的地图”导入文件会发生完全相同的事情),但我想在放弃之前确保这一点。
提前感谢您提供任何信息!
好吧,如果您在 Google JavaScript API, Yes this API does support the KMZ as you can see in this link 中了解有关受支持的 KML 元素的信息。但是3D对象不是。
此外,根据此
但我发现这个 tutorial 如果您仍然想要 3D 对象,它可以帮助您。