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
Name Type Description
height number | undefined optional

Height of StreetView div. Default 640.

width number | undefined optional

Width of StreetView div. Default 480.

Extends

Methods

Close StreetView window

Disable StreetView control

Enable StreetView control

Returns:
class

Get Street View Div

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

Set position of street view panorama.

Name Type Description
position cercalia.LonLat

Resize StreetView dialog

Name Type Description
width number
height number

Shows the control