1 year ago

#326034

test-img

coderfin

What exactly does Google Maps JavaScript API 3 StreetViewPanoramaOptions disableDoubleClickZoom do?

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.

Example with value set to false.

javascript

google-maps

google-maps-api-3

maps

code-documentation

0 Answers

Your Answer

Accepted video resources