Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. How to remove watermark from Thunderforest Map in MapView
Forum Updated to NodeBB v4.3 + New Features

How to remove watermark from Thunderforest Map in MapView

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
9 Posts 4 Posters 1.2k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Aamir
    wrote on last edited by Aamir
    #1

    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

    mapview.png

    Ronel_qtmasterR 1 Reply Last reply
    1
    • A Aamir

      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

      mapview.png

      Ronel_qtmasterR Offline
      Ronel_qtmasterR Offline
      Ronel_qtmaster
      wrote on last edited by
      #2

      @Aamir you will need to add the api key to those url.check this https://stackoverflow.com/questions/61689939/qtlocation-osm-api-key-required

      A 1 Reply Last reply
      0
      • Ronel_qtmasterR Ronel_qtmaster

        @Aamir you will need to add the api key to those url.check this https://stackoverflow.com/questions/61689939/qtlocation-osm-api-key-required

        A Offline
        A Offline
        Aamir
        wrote on last edited by Aamir
        #3

        @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_qtmasterR 1 Reply Last reply
        0
        • A Aamir

          @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_qtmasterR Offline
          Ronel_qtmasterR Offline
          Ronel_qtmaster
          wrote on last edited by
          #4

          @Aamir did you check the link i sent?

          A 1 Reply Last reply
          0
          • Ronel_qtmasterR Ronel_qtmaster

            @Aamir did you check the link i sent?

            A Offline
            A Offline
            Aamir
            wrote on last edited by Aamir
            #5

            @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.

            Ronel_qtmasterR 1 Reply Last reply
            0
            • A Aamir

              @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.

              Ronel_qtmasterR Offline
              Ronel_qtmasterR Offline
              Ronel_qtmaster
              wrote on last edited by Ronel_qtmaster
              #6

              @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

              A 1 Reply Last reply
              1
              • Ronel_qtmasterR Ronel_qtmaster

                @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

                A Offline
                A Offline
                Aamir
                wrote on last edited by
                #7

                @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.

                1 Reply Last reply
                0
                • M Offline
                  M Offline
                  maverick997
                  wrote on last edited by
                  #8

                  @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

                  1 Reply Last reply
                  0
                  • B Online
                    B Online
                    Bob64
                    wrote on last edited by
                    #9

                    @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.

                    1 Reply Last reply
                    0

                    • Login

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • Users
                    • Groups
                    • Search
                    • Get Qt Extensions
                    • Unsolved