You are viewing an older version of MapQuest.js. Check out the latest version.
A control that mimics the control from MapQuest.com. It combines the functionality of navigationControl, locatorControl, satelliteControl, and trafficControl. It also replaces the default leaflet zoom control with one integrated with the MapQuest control.
L.mapquest.key = 'KEY';
var map = L.mapquest.map('map', {
center: [39.7392,-104.9903],
layers: L.mapquest.tileLayer('map'),
zoom: 12
});
map.addControl(L.mapquest.control());
An object containing the following key value option: position.
position: The position of the control (one of the map corners). Possible values are 'topleft', 'topright', 'bottomleft' or 'bottomright'. Default is 'topright'.
{
position: 'topright'
}
An L.Control object that can be added to a map with the addControl() function.