L.mapquest.key = 'KEY';
var baseLayer = L.mapquest.tileLayer('dark');

L.mapquest.geocoding().geocode(['New York, NY'], showMap);

function showMap(err, data) {
  var map = createMap();
  map.addControl(L.mapquest.control());
  addLayerControl(map);
}

function createMap() {
  var map = L.mapquest.map('map', {
    center: [40.7237, -73.9825],
    zoom: 14,
    layers: baseLayer
  });
  return map;
}

function addLayerControl(map) {
  L.control.layers({
    'Map': L.mapquest.tileLayer('map'),
    'Satellite': L.mapquest.tileLayer('satellite'),
    'Hybrid': L.mapquest.tileLayer('hybrid'),
    'Light': L.mapquest.tileLayer('light'),
    'Dark': baseLayer
  }, {}, { position: 'topleft'}).addTo(map);
}
Access the tools and resources you need to map the world.
Join our network of over 34,000 developers and entrepreneurs who leverage the building blocks of our proven geospatial solution.
Get your Free API Key

快联vp n

快联vp n

We give you the flexibility to use open source data or licensed data with most of our APIs and SDKs.

香港伟理服务器ip免费

快联vp n

MapQuest.js Documentation

快联vp n

香港伟理服务器ip免费

快联vp n

MapQuest Routing and Directions API Documentation

快联vp n

MapQuest Search API Documentation

快联vp n

MapQuest Search Ahead API Documentation

快联vp n

香港伟理服务器ip免费

快联vp n

MapQuest Traffic API Documentation

Traffic

MapQuest Data Manager API Documentation

在线伟理服务器免费网页版

在线伟理服务器免费网页版

香港伟理服务器ip免费

香港免费伟理服务器国外app

Elevation

快联vp n

MapQuest.js MapQuest-GL.js Android SDK iOS SDK

Check out the latest around MapQuest

Blog

在线伟理服务器免费网页版

国外伟理服务器ip免费

香港免费伟理服务器国外app

Documentation

Drop us a line

Contact Us
More perks.
国外伟理服务器ip免费
Enterprise Edition
  • 好用叫进入谷歌梯子加速软件  蓝灯下载  极光vp n官网aurora  赛·风加速器  北极星vp加速器  蜜蜂加速器ios官网下载