You are viewing an older version of MapQuest.js. Check out the latest version.
Create and configure a map class with layers, markers, and interactivity.
L.mapquest.key = 'KEY';
// 'map' refers to a <div> element with the ID map
L.mapquest.map('map', {
center: [37.7749, -122.4194],
// L.mapquest.tileLayer('map') is the MapQuest map tile layer
layers: L.mapquest.tileLayer('map'),
zoom: 12
});
Must be the id of an element, or a DOM element reference.
Can have the same options as provided to L.Map.
A new map object with the properties defined in the options.