Welcome, Guest
Username: Password: Remember me

TOPIC: OpenCycleMap api key

OpenCycleMap api key 2 years 10 months ago #228


  • Posts:15 Thank you received: 1
  • Marco's Avatar
  • Marco
  • New Member
  • OFFLINE
Hi all,

It looks like opencyclemap now requires an api key. You can get the key from 'Thunderforest.com' www.thunderforest.com/docs/apikeys/ who seems to be the distributor of these maps. It is free for 'Hobby projects' (< 15k tiles per month)

To activate the key, you can use the following 'OL Parameters' in the map definition:

OpenLayers.Layer.OSM("OpenCycleMap", ["tile.thunderforest.com/cycle/${z}/${x}/${y}.png?apikey=<my-api-key>"])

This is based on the code here: www.thunderforest.com/tutorials/openlayers/ , but using double quotes in the second argument.

Hope it is useful for others...

Marco.
The administrator has disabled public write access.

OpenCycleMap api key 2 years 9 months ago #235


  • Posts:121 Thank you received: 11
  • Christophe's Avatar
  • Christophe
  • Administrator
  • OFFLINE
Thanks MArco
In fact using OpenCycleMap without API key, the tag "API Key required" appear on your map.

I quite afraid that the 15k tiles per month may be too low for most website.
Christophe
J!TrackGallery developper
The administrator has disabled public write access.
Time to create page: 0.146 seconds