{"action":"closed","issue":{"url":"https://api.github.com/repos/tombatossals/angular-leaflet-directive/issues/436","labels_url":"https://api.github.com/repos/tombatossals/angular-leaflet-directive/issues/436/labels{/name}","comments_url":"https://api.github.com/repos/tombatossals/angular-leaflet-directive/issues/436/comments","events_url":"https://api.github.com/repos/tombatossals/angular-leaflet-directive/issues/436/events","html_url":"https://github.com/tombatossals/angular-leaflet-directive/issues/436","id":39876564,"number":436,"title":"How to add MapQuest layer","user":{"login":"BipinBhandari","id":5967448,"avatar_url":"https://avatars.githubusercontent.com/u/5967448?v=3","gravatar_id":"","url":"https://api.github.com/users/BipinBhandari","html_url":"https://github.com/BipinBhandari","followers_url":"https://api.github.com/users/BipinBhandari/followers","following_url":"https://api.github.com/users/BipinBhandari/following{/other_user}","gists_url":"https://api.github.com/users/BipinBhandari/gists{/gist_id}","starred_url":"https://api.github.com/users/BipinBhandari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BipinBhandari/subscriptions","organizations_url":"https://api.github.com/users/BipinBhandari/orgs","repos_url":"https://api.github.com/users/BipinBhandari/repos","events_url":"https://api.github.com/users/BipinBhandari/events{/privacy}","received_events_url":"https://api.github.com/users/BipinBhandari/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2014-08-09T02:43:42Z","updated_at":"2015-06-23T12:20:34Z","closed_at":"2015-06-23T12:20:34Z","body":"I have to add MapQuest layer for drawing routes on leaflet. In MapQuest routing plugin, all I could see is:\r\n```\r\nvar map,\r\n    dir;\r\n \r\nmap = L.map('map', {\r\n    layers: MQ.mapLayer(),\r\n    center: [ 38.895345, -77.030101 ],\r\n    zoom: 15\r\n});\r\n \r\ndir = MQ.routing.directions();\r\n \r\ndir.route({\r\n    locations: [\r\n        '1600 pennsylvania ave, washington dc',\r\n        '935 pennsylvania ave, washington dc'\r\n    ]\r\n});\r\n \r\nmap.addLayer(MQ.routing.routeLayer({\r\n    directions: dir,\r\n    fitBounds: true\r\n})); \r\n```\r\nPlease help me out how would I use this in angular leaflet."}}