MAPPE DELLA SARDEGNA
sardegnamappe api  ›  api documentation  ›  classe
Class framework.widgets.control.ViewDirection


Extends Ext.Button.
Ccontrol to select an angle for 45° views
Defined in: ViewDirection.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Compass control to select an angle for 45° views
Field Summary
Field Attributes Field Name and Description
 
Start direction.
 
Mode: can be compass or orthophoto
Method Summary
Method Attributes Method Name and Description
 
Returns current direction
 
Encapsulate the object in an Extjs Element
 
hide()
 
Rotates compass left
 
Rotates compass right
 
Setting direction
 
show()
 
Changes mode from compass to orthophoto and back
Class Detail
framework.widgets.control.ViewDirection()
Compass control to select an angle for 45° views
Field Detail
{String} initDirection
Start direction. Fixed North (N)

mode
Mode: can be compass or orthophoto
Method Detail
{String} getDirection()
Returns current direction
Returns:
{String} current direction

{Ext.Element} getElement()
Encapsulate the object in an Extjs Element
Returns:
{Ext.Element} ExtJs element

hide()

rotateLeft()
Rotates compass left

rotateRight()
Rotates compass right

setDirection(dir)
Setting direction
Parameters:
dir

show()

switchMode()
Changes mode from compass to orthophoto and back
© 2013 Regione Autonoma della Sardegna