MapQuest.js

L.mapquest.open

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

Syntax

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

var map = L.mapquest.map('map', {
  center: [37.7749, -122.4194],
  layers: [tileLayer],
  zoom: 12
});

Description

In addition to our licensed APIs, MapQuest also has a suite of APIs powered by OpenStreetMap data. By setting the global L.mapquest.open 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