I would like to use the bike layer like this one:

https://www.openstreetmap.org/#map=14/37.7874/-2.9519&layers=C

But I don´t know which url to use. At the moment I have just the default one:

var map = L.map('map');
L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
  attribution: 'Map data &copy; <a href="http://www.osm.org">OpenStreetMap</a>'
}).addTo(map);

Any ideas?

Code from: https://github.com/mpetazzoni/leaflet-gpx

asked 01 Apr, 21:08

Cesp7's gravatar image

Cesp7
1611
accept rate: 0%


That particular layer is provided by Thunderforest which ordinarily operates as a subscription service (there appears to be a free hobby tier).

Usage instructions are here, which links to further tutorials.

permanent link

answered 01 Apr, 23:03

InsertUser's gravatar image

InsertUser
5.4k43895
accept rate: 21%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×295
×58
×51

question asked: 01 Apr, 21:08

question was seen: 209 times

last updated: 01 Apr, 23:03

powered by OSQA