A boolean that determines whether open data and APIs are used instead of licensed data.


L.mapquest.key = 'KEY'; = true;
var tileLayer = L.mapquest.tileLayer('map');

var map ='map', {
  center: [37.7749, -122.4194],
  layers: [tileLayer],
  zoom: 12


In addition to our licensed APIs, MapQuest also has a suite of APIs powered by OpenStreetMap data. By setting the global variable to true, the maps and APIs in this library will use OpenStreetMap data instead of licensed MapQuest data.

There are some limitations around use of our open data. Specifically, the Traffic and Search Ahead APIs will not be available for use on the map.

Visual Example