Class: StreetView

cercaliagl.control/StreetView


Javascript ES5

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

This control allow to display real traffic and forecast traffic.
- In real traffic most roads display linestrings over them. In the bottom right dialog you can see the legend. Traffic affectations like accidents, network managements are displayed too. - In forecast traffic you can adjust the date and the forecast time.

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.