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 based on a URL template. 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 based on a URL template.

Member Function Documentation

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

Constructor that takes a templateUrl and an optional parent.

Use this function to create a WebTiledLayer object, which provides a simple way to integrate non-ArcGIS Services as a layer in a map. Since an explicit TileInfo argument is not part of this constructor, the max LOD will be 23 (approximate scale of 70 and resolution of 1.86 cm/pixel). The template URL usually follows a pattern similar to http://server.org/path/{level}/{col}/{row}.png, where "level" corresponds to a zoom level, "col" represents the tile column, and "row" represents the tile row. This URL should be arranged to reflect how the tiles are arranged in the cache or on the server. This URL can point to a web server (http://) or to a local file cache (file://). The tiles are assumed to be in the OpenStreetMap tiling scheme, with 256x256 PNG tiles at 96 DPI, the web mercator projection, and a fullExtents of [-180, -85.0511, 180, 85.051].

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)

Creates a WebTiledLayer object. Constructor that takes a templateUrl, subDomains and an optional parent

Use this function to create a WebTiledLayer object, which provides a simple way to integrate non-ArcGIS Services as a layer in a map. Since an explicit TileInfo argument is not part of this constructor, the max LOD will be 23 (approximate scale of 70 and resolution of 1.86 cm/pixel). 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 string in the sub_domains list, "level" corresponds to a zoom level, "col" represents the tile column, and "row" represents the tile row. The "sub_domains" list must 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 (file://). The tiles are assumed to be in the OpenStreetMap tiling scheme, with 256x256 PNG tiles at 96 DPI, the web mercator projection, and a full extents of [-180, -85.0511, 180, 85.051].

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?