I cannot add the below map server (Middle_East_Oil_and_Gas_Field_Map_by_CIA (WMTS) to qgis through add WMS/WMTS layer.

A connection will not be made to the following URL.

URL: https://tiles.arcgis.com/tiles/ULBqC49IEeIR01GF/arcgis/rest/services/Middle_East_Oil_and_Gas_Field_Map_by_CIA/MapServer?view=wmtsview&cacheKey=aec62228d3e2389d

What am I doing wrong?

QGIS version 2.18.26

  • 2
    This is no WMS-server, it's an online-map.
    – Erik
    Commented Jan 31, 2019 at 17:15
  • @Erik It is a WMTS and works in ArcGIS online.
    – neogeomat
    Commented Jan 31, 2019 at 18:13
  • 4
    Not with that url it isn't
    – Ian Turton
    Commented Jan 31, 2019 at 18:47
  • I thought I found my answer here but I am having a problem with a similar tiles.arcgis.com location. I apologize if I am not following format but I offer another solution at the end and would appreciate any help with the following MapServer as none of the above solutions worked. The the following URL is what I am having trouble loading in QGIS 3.4. tiles.arcgis.com/tiles/pDAi2YK0L0QxVJHj/arcgis/rest/services/… If I add the previous link to QGIS 3.4 as a ArcGISMapServer Connection the image comes in but is all blurry, pixelated, stretched, and only seen thi Commented Feb 25, 2019 at 19:37

2 Answers 2


You can use this url as WMTS service in QGIS:

  • That is some black magic. How did you do that? Can you please refer me to any kind of reference where I can get more about rewriting the URL in such smart way?
    – Taras
    Commented Feb 1, 2019 at 10:35
  • 1
    If you shorten the original url to tiles.arcgis.com/tiles/ULBqC49IEeIR01GF/arcgis/rest/services in a browser, you will find the ArcGIS Services Directory. There you can navigate to the correct layer and find a link to the WMTS service. Commented Feb 1, 2019 at 10:51

You can add the map as "XYZ Tiles" layer using the following URL:


Notice the variables {z}, {y}, {x} at the end.

I checked it using QGIS 3.4, but should also work with 2.18. See this video.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.