A control that adds interactive navigation functionality to the map.
var map = new mqgl.Map('map', 'KEY', {
controls: {
navigation: {
enabled: true,
type: 'mapquest',
position: 'topright'
}
}
});
An object containing any of the following key value options: enabled, type, and position.
Determines if this control should be displayed.
The type of the control to be added to the map.
Possible values are 'mapquest' or 'basic'.
The position of the control (one of the map corners).
Possible values are 'topleft', 'topright', 'bottomleft' or 'bottomright'.
controls: {
navigation: {
enabled: true,
type: 'mapquest',
position: 'topright'
}
}