Class: Login

Mapspace.action. Login

An action for a Mapspace.control.Login.


new Login( [options])

Parameters:
Name Type Argument Description
options Mapspace.action.LoginOptions <optional>

Options.

Source:
mapspace/actions/login.js

Extends

Members


<nullable> control :Mapspace.control.Control

The control this action is attached to.

Inherited From:
Source:
mapspace/actions/action.js

<nullable> viewer :Mapspace.Viewer

This is the viewer this action will be tied to.

Inherited From:
Source:
mapspace/actions/action.js

Methods


doLogin(user, pwd, rem, usertoken)

Requests a login session to the server.

Parameters:
Name Type Description
user string

User name.

pwd string

Password.

rem boolean

If remember is checked or not.

usertoken string

Usertoken. If present then user and pwd are ignored and the usertoken is used instead as the only param to login.

Source:
mapspace/actions/login.js

doResetPassword(user, pwd, newpwd, usertoken)

Request a reset user password session to the server.

Parameters:
Name Type Description
user string

User name.

pwd string

Current password.

newpwd string

New password.

usertoken string

Usertoken.

Source:
mapspace/actions/login.js

is2DViewer()

Return true if current viewer of the action is a 2D viewer.

Inherited From:
Source:
mapspace/actions/action.js
Returns:
Type
boolean

is3DViewer()

Return true if current viewer of the action is a 3D viewer.

Inherited From:
Source:
mapspace/actions/action.js
Returns:
Type
boolean

isGlobalViewer()

Return true if current viewer of the action is a Mapspace.global.Viewer.

Inherited From:
Source:
mapspace/actions/action.js
Returns:
Type
boolean

isObliqueViewer()

Return true if current viewer of the action is a Mapspace.oblique.Viewer.

Inherited From:
Source:
mapspace/actions/action.js
Returns:
Type
boolean

isObliqueViewerVisible()

Return true if current viewer of the action is a Mapspace.oblique.Viewer or a Mapspace.global.Viewer in Oblique mode.

Inherited From:
Source:
mapspace/actions/action.js
Returns:
Type
boolean

isOrthoViewer()

Return true if current viewer of the action is a Mapspace.ortho.Viewer.

Inherited From:
Source:
mapspace/actions/action.js
Returns:
Type
boolean

isOrthoViewerVisible()

Return true if current viewer of the action is a Mapspace.ortho.Viewer or a Mapspace.global.Viewer in Ortho mode.

Inherited From:
Source:
mapspace/actions/action.js
Returns:
Type
boolean

isProfile3dViewer()

Return true if current viewer of the action is a Mapspace.profile3d.Viewer.

Inherited From:
Source:
mapspace/actions/action.js
Returns:
Type
boolean

isStreetViewer()

Return true if current viewer of the action is a Mapspace.street.Viewer.

Inherited From:
Source:
mapspace/actions/action.js
Returns:
Type
boolean

isTableViewer()

Return true if current viewer of the action is a Mapspace.table.Viewer.

Inherited From:
Source:
mapspace/actions/action.js
Returns:
Type
boolean

isThreedViewer()

Return true if current viewer of the action is a Mapspace.threed.Viewer.

Inherited From:
Source:
mapspace/actions/action.js
Returns:
Type
boolean