javascript Three.js + 传单 = 3D 地图?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/17682551/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Three.js + leaflet = 3D maps?
提问by krb686
This may be a pretty hefty task, but I'm looking for something that can help me create 3D maps with leaflet. I already have leaflet up and running, I just want to transform them into 3D perspective.
这可能是一项非常艰巨的任务,但我正在寻找可以帮助我使用传单创建 3D 地图的东西。我已经制作并运行了传单,我只想将它们转换为 3D 透视图。
My only purpose for this is to display buildings in 3D. I have already used OSM Buildings, however they are not real 3D.
我这样做的唯一目的是以 3D 形式显示建筑物。我已经使用过OSM Buildings,但是它们不是真正的 3D。
I also found ReadyMap, by Pelican Mapping, which supports Leaflet already, but I cannot get this API to work successfully because they haven't updated it in awhile. I've already asked on their Github, so there isn't much coming from that road as of now unless I can figure out how to fix the ReadyMap issues (and their src is tens of thousands of lines). I also have no clue whether OSM buildings would even work with ReadyMap.
我还找到了 Pelican Mapping 的ReadyMap,它已经支持 Leaflet,但我无法让这个 API 成功工作,因为他们有一段时间没有更新它。我已经在他们的 Github 上问过,所以到目前为止,除非我能弄清楚如何解决 ReadyMap 问题(他们的 src 是数万行),否则这条路并没有多少。我也不知道 OSM 建筑是否可以使用 ReadyMap。
So right now, I'm looking for any other options out there. My 2 biggest prospects are
所以现在,我正在寻找任何其他选择。我最大的两个前景是
and
和
I essentially want my end result to look something like this:
我基本上希望我的最终结果看起来像这样:
Go here, and click "Earth" on the right.
转到此处,然后单击右侧的“地球”。
Any help would be greatly appreciated!
任何帮助将不胜感激!
回答by yarl
回答by Jose Gómez
You may want to check the new version of OSMBuildings, which is real 3D.
您可能需要查看新版本的 OSMBuildings,它是真正的 3D。