A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developers.arcgis.com/qt/cpp/api-reference/esri-arcgisruntime-webtiledlayer.html below:

WebTiledLayer Class | ArcGIS Maps SDK for Qt

A layer that can visualize image tiles from non-ArcGIS web services or local tile caches based on a URL template. More...

Detailed Description

This layer provides a simple way to integrate non-ArcGIS Services as a layer in a map. The URL template usually follows a pattern similar to https://{subDomain}.server.org/path/{level}/{col}/{row}.png, where:

The URL should be arranged to reflect how the tiles are organized in the cache or on the server, and can point to a web server (https://) or to a local file cache (file://).

The tiles retrieved by this class are accessed directly by URL. Because the service is only providing images, you are responsible for manually setting the attribution text on the map or scene view.

To create a custom service tiled layer whose URL follows the above pattern (or a similar pattern), you can extend this class. Alternatively, you can extend the super class ServiceImageTiledLayer, in which you implement a required method to set the request information for a given LOD, column, and row. Extending WebTiledLayer, however, has no such requirement.

A ErrorType::CommonInvalidArgument error will be emitted when attempting to load a layer with invalid URL template.

If TileInfo is not specified, tiles are assumed to be in the OpenStreetMap tiling scheme, with 256x256 PNG tiles at 96 DPI, the WebMercator projection, and a FullExtent of [-180, -85.0511, 180, 85.051].

Functional characteristics

Tiles are fetched on demand using the specified URL template. Tiles are typically rendered and cached on the server but may be generated on demand by some services. Web tiled layers do not support identify, query, selection, or time.

Specifying subdomains from which the layer will request tiles allows the load to be more evenly distributed among servers.

Performance characteristics

Web tiled layer requires a connection to the service at all times. Performance is similar to other raster tile layers.

Relevant samples:

Member Function Documentation [explicit] WebTiledLayer::WebTiledLayer(const QString &templateUrl, QObject *parent = nullptr)

Creates a web tiled layer with the given URL template.

Use this constructor to create a WebTiledLayer to integrate non-ArcGIS Services as a layer in a map. Since this constructor does not require an explicit TileInfo argument, the max LOD will be 23 (approximate scale of 70 and resolution of 1.86 cm/pixel). The URL template usually follows a pattern similar to https://server.org/path/{level}/{col}/{row}.png, where:

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 (https://) 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 webMercator projection, and an extent of [-180, -85.0511, 180, 85.051].

TileInfo and Layer::fullExtent are set to OpenStreetMap-compatible defaults, and subDomains is left empty.

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

Creates a web tiled layer with the given URL template and collection of subdomains.

Use this constructor to create a WebTiledLayer to integrate non-ArcGIS Services as a layer in a map. Since this constructor does not require an explicit TileInfo argument, the max LOD will be 23 (approximate scale of 70 and resolution of 1.86 cm/pixel). The URL template usually follows a pattern similar to https://{subDomain}.server.org/path/{level}/{col}/{row}.png, where:

The subDomains collection must contain at least 1 string value to use the "subDomain" key in the URL template. 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 (https://) 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 webMercator projection, and an extent of [-180, -85.0511, 180, 85.051]. TileInfo and Layer::fullExtent are set to OpenStreetMap-compatible defaults.

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

Creates a web tiled layer with the specified URL template, tiling scheme information, and extent.

Use this constructor to create a WebTiledLayer to integrate non-ArcGIS Services as a layer in a map. The URL template usually follows a pattern similar to https://server.org/path/{level}/{col}/{row}.png, where:

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 (https://) or to a local file cache (file://). subDomains is left empty.

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

Creates a web tiled layer with the given URL template, subdomain collection, tiling scheme information, and extent.

Use this constructor to create a WebTiledLayer to integrate non-ArcGIS Services as a layer in a map. The URL template usually follows a pattern similar to https://{subDomain}.server.org/path/{level}/{col}/{row}.png, where:

The subDomains collection must contain at least 1 string value to use the "subDomain" key in the URL template. 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 (https://) or to a local file cache (file://).

[override virtual noexcept] WebTiledLayer::~WebTiledLayer()

Destructor.

QStringList WebTiledLayer::subDomains() const

Returns the collection of subdomains that can be used for the "{subDomain}" key in the templateUrl.

At least one subdomain must be provided if the templateUrl contains a {subDomain} key. Note: the value of subDomains cannot be changed after this layer was loaded.

QString WebTiledLayer::templateUrl() const

Returns the URL template for the this web tiled layer.

The template uses the {subDomain} (optional), {level}, {row}, and {col} keys to note how the layer should construct the URL for requesting individual tiles. 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 (https://) or to a local file cache (file://). Note: the value of templateUrl cannot be changed after this layer was loaded.

See also QString.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4