在 Google 地图对象上添加 3D 图层 [英] Add a 3D layer on a Google Maps object
问题描述
我想在 Google 地图上添加一个显示云位置和海拔的 3D 图层.
这个想法是,当您倾斜地图时(在地球模式下按住 ctrl+拖动),您可以看到每朵云的高度.
我发现这篇文章解释了如何添加 3D 建筑物,但它是假的",欺骗纬度以获得一些高度效果:
我在文档中找不到任何最新信息.
Google 似乎对 Javascript API 中的 3D 功能保持沉默.我能得到的最接近的是 Styled Maps,但没有任何地方明确表示 3D.目前只有 Android 实现可用.
我做了一些研究,发现这个库可以帮助您构建 2D 和 3D:https://github.com/OSMBuildings/OSMBuildings
I want to add a 3D layer showing cloud location and elevation on a Google Maps.
The idea is that when you tilt the map (ctrl+drag in Earth mode) you could see how high each cloud is.
I found this article which explains how to add 3D buildings but it's "fakes", cheating with the latitudes to get some height effect:
http://johndyer.name/drawing-3d-objects-and-building-on-google-maps/
I couldn't find anything up to date in the doc.
Google seems to be silent about 3D features in Javascript API. Closest I can get to this are Styled Maps but nowhere does it specifically indicate 3D. Only Android implementations are available as of now.
I did some research and found this library which help you build 2D and 3D: https://github.com/OSMBuildings/OSMBuildings
这篇关于在 Google 地图对象上添加 3D 图层的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!