[GIS] Add an API key to QGIS for QOSM layer

apiqgis

Could someone let me know how I add a API key to QGIS 2.14.10. The diagonal API key required is still on my map layer. Bit of a novice on QGIS.

Best Answer

I guess you are using the QOSM plugin to display the OpenCycleMap, since the standard OSM map does not have API keys.

You can obtain an API key from the map producer Thunderforest. They provide details here, including a sample tile request URL. You can add that to the properties of the QOSM layer, inserting the line

http://a.tile.thunderforest.com/cycle/${z}/${x}/${y}.png?apikey=<insert-your-apikey-here>

and clicking on Add Custom Type. Take care of the grammar for the variables that differs from the linked site.


UPDATE

Alternatively, you can use the QuickMapServices plugin, go to Settings, Add/Edit/Remove, My services, upper right icon (Create service from existing) , select OSM TF Landscape, go to the TMS panel, and edit the URL as above.