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.showCompass
Boolean
default:true
|
If true the compass button is included.
|
options.showZoom
Boolean
default:true
|
If true the zoom-in and zoom-out buttons are included.
|