NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

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 '20, 21:08

Cesp7's gravatar image

Cesp7
16111
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 '20, 23:03

InsertUser's gravatar image

InsertUser
11.0k1369185
accept rate: 19%

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:

×362
×69
×60

question asked: 01 Apr '20, 21:08

question was seen: 1,673 times

last updated: 01 Apr '20, 23:03

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum