Google Maps JavaScript API 3 StreetViewPanoramaOptions disableDoubleClickZoom 到底有什么作用?
Google 地图 StreetViewPanoramaOptions 的文档列出了 disableDoubleClickZoom作为一个选项。
我使用的是 API 版本 3.48。我在本地和在线谷歌地图上研究并尝试了一堆不同的选项,试图找出这个选项的作用,但找不到任何东西。
这个选项到底有什么作用?它仍然是一个有效的选择吗?有活生生的例子吗?
默认值为true
,表示默认情况下应禁用双击缩放。这是有道理的,因为在大多数情况下双击会将街景视图导航到新位置。禁用导航,将值设置为 false,然后双击不会产生任何结果。将其设置为 true 也没有什么区别。
我发现了一篇非常古老的文章,其中讲述了关于双击缩放。它指出:
有时,煎饼的右下角会显示一个小放大镜,表示双击将放大当前图像,而不是将您带到更近的位置。
我在街景中找不到任何地方可以表现出如此放大的等级。如果有这样的地方,纬度和经度将有助于测试它。
这篇旧文章 还提到类似的显示图像,可以双击以查看“放大”的对象(例如埃菲尔铁塔)的图像。此示例中显示的 UI 与现在可用的 UI 有很大不同。
这些文章来自 2009 年。我想知道此选项是否是不再有效的旧选项。
请务必注意,此(街景视图)disableDoubleClickZoom 与 mapOptionsdisableDoubleClickZoom。
The documentation for Google Maps StreetViewPanoramaOptions lists disableDoubleClickZoom as an option.
I am using API version 3.48. I have researched and tried a bunch of different options on a google map locally and online to try and figure out what this option does but cannot find anything.
What exactly does this option do? Is it still a valid option? Are there any live examples?
The default value is true
meaning double click zoom should be disabled by default. This makes sense as double clicking in most cases navigates the street view to a new location. Disabling the navigation, setting the value to false, then double clicking yields no results. Setting it to true makes no difference as well.
I found a really old article that talks about double clicking to zoom. It states:
Sometimes the pancake shows a little magnifying glass in the bottom right to indicate that double clicking will zoom in on the current image rather than transport you to a closer location.
I cannot find any place in street view that shows such a magnifying class. If there is such a place a latitude and longitude would be helpful to test it out.
This old article also mentions something similar showing images that can be double clicked to see images of an object (such as the Eiffel Tower) "zoomed in". The UI shown in this example is very different from what is available now.
These articles are from 2009. I am wondering if this option is a legacy option that no longer works.
It is important to note that this (street view) disableDoubleClickZoom is not the same as the mapOptions disableDoubleClickZoom.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论