Getting Started

MapQuest-GL.js is a JavaScript library for interactive maps, geocoding, directions, and traffic. MapQuest-GL.js is powered by the MapQuest APIs.

To get started, first include MapQuest-GL.js and MapQuest.css in your HTML header.

<script src=""></script>
<link type="text/css" rel="stylesheet" href=""/>

Then define a MapQuest map object with your MapQuest key, with center, zoom, pitch, and bearing values.

var map = new mqgl.Map('map', 'KEY', {
  center: [-122.2082454,37.4780123],
  zoom: 13,
  pitch: 60,
  bearing: 0

map.load(function() {
  setTimeout(function() {{speed: 0.5, zoom: 15, pitch: 60, bearing: 180, center: [-122.3989808,37.7517676]})
  }, 2000);

Join the Community

You'll need to sign up for an account with MapQuest. An API key is provided upon sign up and is required when accessing MapQuest services.

Sign Up

Get Coding

Once you have an account, get started making. We have tons of APIs to try including Mapping, Geocoding, Directions, and Search.

Grab the Key

Supported Browsers



      Supporting Documentation