You are viewing an older version of MapQuest-GL.js. Check out the latest version.
Create and configure a vector map with pitch, markers, and interactivity.
// 'map' refers to a <div> element with the ID map
var map = new mqgl.Map('map', 'KEY', {
center: [-73.993411, 40.731701]
});
Must be the id of an element, or a DOM element reference.
The API Key, which is needed to access MapQuest services.
An object containing any of the options described on the Options page.
A new map object with the properties defined in the options.