The streetview Map Mode
Learn how to use the streetview map mode on an embedded map.
We'll cover the following
The streetview
map mode
The streetview
mode displays Street View images as panoramic views from the specified locations–each panoramic view providing an interactive 360-degree view. The images have a 360-degree horizontal view and a 180-degree vertical view. The base URL of this map mode looks like this:
https://www.google.com/maps/embed/v1/streetview?key=API_KEY&PARAMETERS
.
The streetview
map mode parameters
We can use the following parameters in the streetview
map mode:
Parameters | Category | Description |
| Required | This parameter specifies the location that the display of the panoramic photography will use. It accepts comma-separated latitude and longitude values as input. |
| Optional | This parameter defines the compass heading of the camera in degrees clockwise from the North. It accepts a value between |
| Optional | This parameter specifies the camera's angle (up or down) on the map. It accepts a value between |
| Optional | This parameter specifies the horizontal field of view of the image on the map. It accepts a value between |
| Optional | This parameter sets the center of the map view. It accepts comma-separated latitude and longitude values as input. |
| Optional | This parameter sets the initial zoom level of the map view. It accepts integer values ranging from The maximum possible zoom value varies depending on the location but is usually |
| Optional | This parameter defines which map type loads. It only accepts |
| Optional | This parameter defines the language for the UI elements and labels on the map. It accepts a two-character ccTLD region code as input. |
| Optional | This parameter defines the appropriate borders and labels to display, and tailors them according to the geopolitical sensitivities of a region. It accepts a two-character ccTLD region code as input. |
Code example
In the code example below, the street-level panorama imagery of the Statue of Liberty is displayed using the streetview
map mode:
We pass only the location
parameter with the value 40.689247,-74.0445025
in lines 13–15 of the request URL. This displays a panoramic street view image of the area around the Statue of Liberty.