How to remove watermark from Thunderforest Map in MapView
-
Hi,
I've created an account on Thunderforest and got an API Key. I'm trying to use this API key to access the Maps, but I'm still seeing the "API Key Required" watermark on the Map.How can I remove the "API Key Required" watermark from the Map?
Here is my QML file: (I'm using Qt 6.6.2)
import QtQuick import QtLocation Item { width: 800; height: 800 MapView { anchors.fill: parent map { plugin: Plugin{ id: osmPlugin name: "osm" PluginParameter { name: "osm.mapping.custom.host"; value: "https://tile.thunderforest.com/outdoors/{z}/{x}/{y}.png?apikey=<my-api-key>" } PluginParameter { name: "osm.mapping.providerrepository.address"; value: "https://{s}.tile.thunderforest.com/outdoors/{z}/{x}/{y}.png?apikey=<my-api-key>" } } } } }
Here is the output from the application
-
@Aamir you will need to add the api key to those url.check this https://stackoverflow.com/questions/61689939/qtlocation-osm-api-key-required
-
@Ronel_qtmaster I'm adding the API keys in those URLs.
<my-api-key>
is replaced with my actual Thunderforest API key, but still the watermark are appearing. The link you shared suggests to create a local webserver.Is it not possible to remove the watermark without serving from the local server?
-
@Ronel_qtmaster Yes I did, this is the value of
osm.mapping.custom.host
plugin key.
I've truncated my API key for security reason. I still see the watermark with the below URL.PluginParameter { name: "osm.mapping.custom.host"; value: "https://tile.thunderforest.com/outdoors/{z}/{x}/{y}.png?apikey="3df1a5......" }
Following the link, I changed the URL as follows:
PluginParameter { name: "osm.mapping.custom.host"; value: "http://a.tile.thunderforest.com/cycle/%z/%x/%y.png?apikey=3df1a5...." }
but this also doesn't work.I want to fetch the tiles from Internet, I don't want to setup a local webserver.
-
@Aamir add
activeMapType: supportedMapTypes[supportedMapTypes.length - 1] top map let's see if it works
You may also find this helpful https://bugreports.qt.io/browse/QTBUG-115742 -
@Ronel_qtmaster Thanks a lot for sharing the bug link. As per the last comment on 5th March, this solution is still not working.
I'll keep an eye on that bug to see if they fix this issue.
-
@Aamir did you get the solution cause i am facing the the same issue and i was trying to render the tiles without watermark
thanks,
maverick997 -
@maverick997 I don't have any special knowledge about this but there were more comments added to the bug after the 5 March date mentioned in comment #7 of this thread.