Skip To Content ArcGIS for Developers Sign In Dashboard

WebTiledLayer Class

(Esri::ArcGISRuntime::WebTiledLayer)

A class that represents a layer that requests images from a tiled image server on the Web. More...

Header: #include <WebTiledLayer>
Since: Esri::ArcGISRuntime 100.1
Inherits: ServiceImageTiledLayer
Inherited By:

Esri::ArcGISRuntime::OpenStreetMapLayer

Public Functions

WebTiledLayer(const QString &templateUrl, QObject *parent = nullptr)
WebTiledLayer(const QString &templateUrl, Credential *credential, QObject *parent = nullptr)
WebTiledLayer(const QString &templateUrl, const QStringList &subDomains, QObject *parent = nullptr)
WebTiledLayer(const QString &templateUrl, const QStringList &subDomains, Credential *credential, QObject *parent = nullptr)
WebTiledLayer(const QString &templateUrl, const TileInfo &tileInfo, const Envelope &fullExtent, QObject *parent = nullptr)
WebTiledLayer(const QString &templateUrl, const TileInfo &tileInfo, const Envelope &fullExtent, Credential *credential, QObject *parent = nullptr)
WebTiledLayer(const QString &templateUrl, const QStringList &subDomains, const TileInfo &tileInfo, const Envelope &fullExtent, QObject *parent = nullptr)
WebTiledLayer(const QString &templateUrl, const QStringList &subDomains, const TileInfo &tileInfo, const Envelope &fullExtent, Credential *credential, QObject *parent = nullptr)
~WebTiledLayer()
QStringList subDomains() const
QString templateUrl() const

Additional Inherited Members

Detailed Description

A class that represents a layer that requests images from a tiled image server on the Web.

WebTiledLayer provides a simple way to integrate non-ArcGIS Services as a layer in a map.

The template URL usually follows a pattern similar to http://{subDomain}.server.org/path/{level}/{col}/{row}.png, where "subDomain" is one of the available strings in the subDomains list, "level" corresponds to a zoom level, "col" represents the tile column, and "row" represets the tile row. The subDomains list must have at least 1 string value to use the "subDomain" key in the template URL. The URL should be arranged to reflect how the tiles are arranged in the cache or on the server, and can point to a web server (http://) or to a local file cache (C:/dataPath)

Note: This layer requires a string as opposed to a URL, which is the required data format for most other layers. Use "http://" to reference an online layer and use the file path to a local tile cache when working with an offline layer (do not add the "file:///" prefix). For example, use "C:/dataPath/{level}/{column}/{row}.png" and not "file:///C:/dataPath/{level}/{column}/{row}.png"

Member Function Documentation

WebTiledLayer::WebTiledLayer(const QString &templateUrl, QObject *parent = nullptr)

Constructor that takes a templateUrl and an optional parent.

See the class description for how to format templateUrl.

WebTiledLayer::WebTiledLayer(const QString &templateUrl, Credential *credential, QObject *parent = nullptr)

Constructor that takes a templateUrl, credential and an optional parent.

See the class description for how to format templateUrl.

WebTiledLayer::WebTiledLayer(const QString &templateUrl, const QStringList &subDomains, QObject *parent = nullptr)

Constructor that takes a templateUrl, subDomains and an optional parent

See the class description for how to format templateUrl and usage of subDomains.

WebTiledLayer::WebTiledLayer(const QString &templateUrl, const QStringList &subDomains, Credential *credential, QObject *parent = nullptr)

Constructor that takes a templateUrl, subDomains, credential and an optional parent

See the class description for how to format templateUrl and usage of subDomains.

WebTiledLayer::WebTiledLayer(const QString &templateUrl, const TileInfo &tileInfo, const Envelope &fullExtent, QObject *parent = nullptr)

Constructor that takes a templateUrl, tileInfo, fullExtent and an optional parent.

See the class description for how to format templateUrl.

WebTiledLayer::WebTiledLayer(const QString &templateUrl, const TileInfo &tileInfo, const Envelope &fullExtent, Credential *credential, QObject *parent = nullptr)

Constructor that takes a templateUrl, tileInfo, fullExtent, credential and an optional parent.

See the class description for how to format templateUrl.

WebTiledLayer::WebTiledLayer(const QString &templateUrl, const QStringList &subDomains, const TileInfo &tileInfo, const Envelope &fullExtent, QObject *parent = nullptr)

Constructor that takes a templateUrl, subDomains, tileInfo, fullExtent and an optional parent.

See the class description for how to format templateUrl and usage of subDomains.

WebTiledLayer::WebTiledLayer(const QString &templateUrl, const QStringList &subDomains, const TileInfo &tileInfo, const Envelope &fullExtent, Credential *credential, QObject *parent = nullptr)

Constructor that takes a templateUrl, subDomains, tileInfo, fullExtent, credential and an optional parent.

See the class description for how to format templateUrl and usage of subDomains.

WebTiledLayer::~WebTiledLayer()

Destructor.

QStringList WebTiledLayer::subDomains() const

Returns the list of sub domains used to construct the layer if specified.

QString WebTiledLayer::templateUrl() const

Returns the template url used to construct the layer.


Feedback on this topic?