在Google地图对象上添加3D图层 [英] Add a 3D layer on a Google Maps object

查看:164
本文介绍了在Google地图对象上添加3D图层的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在Google地图上添加一个显示云位置和高程的3D图层。 这个想法是,当您倾斜地图时(ctrl +拖动地球模式),你可以看到每个云有多高。



我发现这篇文章解释了如何添加3D建筑物,但它是假货身高效果:



我无法在文档中找到任何最新的内容。

解决方案

Google似乎对Javascript API中的3D功能保持沉默。最近我可以得到这是风格的地图,但它没有明确表示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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆