Class: StreetView

cercaliagl.control/StreetView


Javascript ES5

const control = new cercaliagl.control.StreetView();

This control allows to display a dialog with Google Street view.
- A button is added on the bottom rigth to toggle the dialog. - A marker is added on the map to show the current Street View image. The marker can be dragged to change the location or you can use the arrows inside the dialog.

new StreetView()

Extends

Methods

Close

Disable traffic control.

Enable StreetView control

Returns cercalia Map object

Returns:
Cercalia map.

getClass(){string} inherited

Get class name.

Returns:
Class name.

getElement(){Element} inherited

Get control HTML Element

Returns:
HTML Element

Get control id.

Returns:
Id.

getMap(){module:maplibre-gl~Map} inherited

Returns mapboxgl Map object

getName(){string|null} inherited

Get control name. Null if control has not defined name.

Returns:
Class name.

Hide control.

setPosition(position)

Set position of street view panorama.

Name Type Description
position module:cercaliagl/LonLat~LonLat

Position.

Show control.