Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><strong>EDIT</strong> <br/> The code below only changes the tiles and does not impact routing. See <a href="http://www.mapquestapi.com/directions/" rel="nofollow">MapQuest directions web service</a> on how to use JavaScript to get routing data from their Route Service.</p> <hr> <p>According to <a href="http://sajjad.in/2012/01/mapquest-tiles-through-leaflet-js/" rel="nofollow">this</a> blog post, you just need to change the preamble.</p> <blockquote> <p>The Cloudmade maps layer looks like this.:</p> </blockquote> <pre><code>var map = new L.Map('map'); var cloudmadeUrl = 'http://{s}.tile.cloudmade.com/API-KEY/997/256/{z}/{x}/{y}.png', cloudmadeAttrib = 'Map data &amp;copy; 2011 OpenStreetMap contributors, Imagery &amp;copy; 2011 CloudMade', cloudmade = new L.TileLayer(cloudmadeUrl, {maxZoom: 18, attribution: cloudmadeAttrib}); </code></pre> <blockquote> <p>Change the preamble to.</p> </blockquote> <pre><code>var map = new L.Map('map'); var mapquestUrl = 'http://{s}.mqcdn.com/tiles/1.0.0/osm/{z}/{x}/{y}.png', subDomains = ['otile1','otile2','otile3','otile4'], mapquestAttrib = 'Data, imagery and map information provided by &lt;a href="http://open.mapquest.co.uk" target="_blank"&gt;MapQuest&lt;/a&gt;, &lt;a href="http://www.openstreetmap.org/" target="_blank"&gt;OpenStreetMap&lt;/a&gt; and contributors.', mapquest = new L.TileLayer(mapquestUrl, {maxZoom: 18, attribution: mapquestAttrib, subdomains: subDomains}); </code></pre> <p><a href="http://sajjad.in/2012/01/mapquest-tiles-through-leaflet-js/" rel="nofollow">http://sajjad.in/2012/01/mapquest-tiles-through-leaflet-js/</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload