A NavigationControl control contains zoom buttons and a compass.
Constructor
tt.NavigationControl([options])
Example
var nav = new tt.NavigationControl({});
map.addControl(nav, 'top-left');
Parameters
Name |
Description |
options
Object
default:None
|
Object with options
|
options.showZoom
Boolean
default:true
|
If true the zoom-in and zoom-out buttons are included.
|
options.showCompass
Boolean
default:true
|
If true the compass button is included.
|
options.showExtendedRotationControls
Boolean
default:false
|
If true the rotation buttons are included.
|
options.rotationStep
Boolean
default:10
|
The number of degrees the map rotates per click
|
options.showPitch
Boolean
default:false
|
If true the pitch button is included.
|
options.showExtendedPitchControls
Boolean
default:false
|
If true the rotation buttons are included.
|
options.pitchStep
Boolean
default:10
|
The number of degrees the map tilts per click
|