谷歌地图API的自定义街景质量问题 [英] Google Maps API custom Street View quality issue
本文介绍了谷歌地图API的自定义街景质量问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我创建了一个谷歌Photo Sphere和我想这个嵌入我的网页上:
I created a Google Photo Sphere and I want to embed this on my page:
-
使用iframe,一切工作正常:
Using iframe, everything works ok:
http://fotomilo.pl/test_iframe.aspx - 质量是好的。
http://fotomilo.pl/test_iframe.aspx — quality is ok.
使用JavaScript API,有问题:
Using JavaScript API, there are problems:
http://fotomilo.pl/test_js.html - 质量差
质量问题:
它看起来像瓷砖不匹配。看图像和全景的JavaScript渲染。
It look like tiles mismatch. Look at the image and panorama rendered with JavaScript.
推荐答案
我一直在寻找解决办法很长,我终于找到了。
I've been looking for solution quite long and I finally found..
... 命名为模式google.maps.StreetViewPanorama类无证选项
- 'HTML4':街景瓷砖呈现为HTML标签不
翘曲。 - HTML5:街景瓷砖使用Canvas 2D渲染 。
- '的WebGL':街景瓷砖使用的WebGL(又名帆布3D)呈现
例如:
...
var map = new google.maps.Map( canvasElement, mapOptions );
var panorama = map.getStreetView();
var options = { mode : 'html4' };
panorama.setOptions( options );
...
试试吧。
(发现在这胎面)
这篇关于谷歌地图API的自定义街景质量问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文