Class: StreetView

cercalia.Control.StreetView

Google StreetView control.

Add a button at the upper right map corner. When clicked adds a marker on the map that can be dragged in order to show StreetView on the map.

The StreetView is shown in a dialog, with navigation functionallity.

new cercalia.Control.StreetView(opt_options)

Name Type Description
options cercaliax.Control.StreetViewOptions

Extends

Methods

Close StreetView window

Disable StreetView control

Enable StreetView control

getClass(){string} inherited

Returns:
class

getDiv(){HTMLElement|null}

Get Street View Div

getElement(){HTMLElement} inherited

Obtain the control DOM element

Returns:
DOM Element

Returns the control name

Returns:
Control name

Hide the control

Returns if StreetView window is opened

Open StreetView window

setPosition(position)

Set position of street view panorama.

Name Type Description
position cercalia.LonLat

setSize(width, height)

Resize StreetView dialog

Name Type Description
width number
height number

Shows the control