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. ESRI map plugin not working / shows solid gray map
Forum Update on Monday, May 27th 2025

ESRI map plugin not working / shows solid gray map

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
5 Posts 3 Posters 533 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.
  • M Offline
    M Offline
    Mlibu
    wrote on last edited by Mlibu
    #1

    Hi all, has anyone tried the ESRI map plugin recently? I can get the list of supportedMapTypes from it but the map is just solid gray but with the ESRI link properly in the bottom left hand corner. I know SSL is working because when I switch to the OSM map there are no TLS errors.

    I am using the plugin that comes wtih PySide2. I also switched it with the .DLL that came with At 5.15.2 and it does the same thing. I don't see any debug messages or errors from QML.

    I tried both with and without my API key.

    I'm using PySide2 5.15.2.1 but I also tried copying the .dll from the Qt 5.15.2 MSVC2015 native build and it does the same thing.

    Here is my code:

    Plugin {
            id: mapPlugin
            name: "esri" 
            PluginParameter {
                name: "esri.token"
                value: "TOKEN"
        }
    
    Map {
            id: mapPanel
            anchors.fill: parent
            plugin: mapPlugin
            activeMapType: supportedMapTypes[1]
            Component.onCompleted: {
                for (var i=0; i<mapPanel.supportedMapTypes.length; i++) {
                    console.log(i, supportedMapTypes[i].name)
                }
            }
        }
    
    M 1 Reply Last reply
    0
    • M Mlibu

      Hi all, has anyone tried the ESRI map plugin recently? I can get the list of supportedMapTypes from it but the map is just solid gray but with the ESRI link properly in the bottom left hand corner. I know SSL is working because when I switch to the OSM map there are no TLS errors.

      I am using the plugin that comes wtih PySide2. I also switched it with the .DLL that came with At 5.15.2 and it does the same thing. I don't see any debug messages or errors from QML.

      I tried both with and without my API key.

      I'm using PySide2 5.15.2.1 but I also tried copying the .dll from the Qt 5.15.2 MSVC2015 native build and it does the same thing.

      Here is my code:

      Plugin {
              id: mapPlugin
              name: "esri" 
              PluginParameter {
                  name: "esri.token"
                  value: "TOKEN"
          }
      
      Map {
              id: mapPanel
              anchors.fill: parent
              plugin: mapPlugin
              activeMapType: supportedMapTypes[1]
              Component.onCompleted: {
                  for (var i=0; i<mapPanel.supportedMapTypes.length; i++) {
                      console.log(i, supportedMapTypes[i].name)
                  }
              }
          }
      
      M Offline
      M Offline
      Mlibu
      wrote on last edited by
      #2

      @Mlibu

      I had a revelation and decided to look on the Community ESRI support forum. It seems that the token is an OAuth2 token and NOT an API token, so this could be my problem.

      Here are the instructions to make it work: https://developers.arcgis.com/documentation/mapping-apis-and-services/security/application-credentials/

      I will give it a try tonight and post an update on how it goes.

      M 1 Reply Last reply
      0
      • M Mlibu

        @Mlibu

        I had a revelation and decided to look on the Community ESRI support forum. It seems that the token is an OAuth2 token and NOT an API token, so this could be my problem.

        Here are the instructions to make it work: https://developers.arcgis.com/documentation/mapping-apis-and-services/security/application-credentials/

        I will give it a try tonight and post an update on how it goes.

        M Offline
        M Offline
        Mlibu
        wrote on last edited by
        #3

        @Mlibu I tried the OAuth2 key and it still didn't work.

        D 1 Reply Last reply
        0
        • M Mlibu

          @Mlibu I tried the OAuth2 key and it still didn't work.

          D Offline
          D Offline
          deval-avive
          wrote on last edited by
          #4

          @Mlibu Did you figure out how to get ESRI to work?

          1 Reply Last reply
          0
          • P Offline
            P Offline
            pattan001
            wrote on last edited by
            #5

            I faced similar problem. Not only esri but also with mapbox and here map. I can only display the OSM and Mapbox GLmap. I am not sure why. I usually use Here map plugin but I found this problem and it occurs on Esri as well. With Mapbox, I got the error: " Problem with tile image" but I got no error for esri. Weird.

            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