ExtStreetviewControl
This library creates a collapsible StreetView display in the corner of the main map.
And the ExtStreetviewControl adds a marker for reference location on the main map.
You can draggble it and change location main map and StreetView display location.
Note: Unlike other controls, you can only place this control in the bottom right corner of the map (G_ANCHOR_BOTTOM_RIGHT).
For a description and examples of how to use this library, check out the how-to.
class ExtStreetviewControl
Constructor
Constructor |
Description |
ExtStreetviewControl(opt_opts?:ExtStreetviewOptions) |
Creates a control and a marker with options specified in ExtStreetviewOptions . |
Methods
Methods |
Return Value |
Description |
getMarker() |
GMarker |
Get marker for StreetviewControl |
getPov() |
GPov |
Get current Panorama View |
hide() |
None |
Change visibility of the control to hidden. |
isHidden() |
Boolean |
Returns true when the control is hidden. |
setCtrlStauts("MINI":status) |
None |
Sets control status |
setLocationAndPOV(latlng:GLatLng, pov?:GPov) |
None |
Set location of panorama and marker, and view of panorama. |
setMainContent(contentType:String) |
None |
Specify main content into the map div.
You can select strings; "MAP" or "STREETVIEW". |
setPov(pov:) |
None |
Set current Panorama View
c |
show() |
None |
Change visibility of the control to visible. |
class ExtStreetviewOptions
This class represents optional arguments to ExtStreetviewControl
.
It has no constructor, but is instantiated as an object literal. There is no constructor for this class. Instead, this class is instantiated as a javascript object literal.
Properties
Properties |
Type |
Description |
controlStatus |
String |
Specify control status.
You can select string; "NORMAL" or "MINI". The default value is "NORMAL" . |
hidden |
Boolean |
Specify visibility when control is
added to the map. If it is set to true, the control is hidden. The default value is false . |
latlng |
GLatLng |
Specifies latlng of panorama.
If it is not set, then control gets center location of main map. The default value is null . |
mainContent |
String |
Specify main content into the map div.
You can select strings; "MAP" or "STREETVIEW". The default value is "MAP" . |
marker |
GMarker |
Specifies a marker for user handling.
See a PegmanMarker into extstreetviewcontrol.js The default value is PegmanMarker . |
pov |
GPov |
Specifies initialize pov of panorama. The default value is {yaw : 0, pitch : 0, panoId : null} . |
size |
GSize |
Specifies control's size. The default value is GSize(300, 210) . |
class PegmanMarker
Constructor
Constructor |
Description |
PegmanMarker(opts?:MarkerOptions, opt_opts:) |
***********************************************
Creates a pegman marker. |
Methods
Methods |
Return Value |
Description |
getIcon() |
GIcon |
Returns the icon |
redraw(force:, type:, value:) |
None |
Redraw marker.
This method is extended GMarker.redraw() method.
This method will be called from ExtStreetviewControl with angle parameter.
The icon should be change the icon image. |