This class was introduced in Esri::ArcGISRuntime 100.1.
Reimplemented Public Functions
|virtual void||setAttribution(const QString &attribution) override|
An OpenStreetMapLayer is a preconfigured WebTiledLayer. But unlike a web tiled layer, it comes with predefined attribution and does not support identify, query, selection, or time. Performance of OSM layers is similar to web tiled layer performance. Raster tiles are read from the service as needed by the map.
- Service availability is not guaranteed. Apps with high demand may be denied access at any time.
- There are many organizations providing OpenStreetMap tiles. Consider using one of these services (or hosting your own) if you anticipate high demand.
See sample: OpenStreetMap layer
Member Function Documentation
OpenStreetMapLayer::OpenStreetMapLayer(QObject *parent = nullptr)
Constructor that takes an optional parent.
[override virtual] void OpenStreetMapLayer::setAttribution(const QString &attribution)
Reimplements: ImageTiledLayer::setAttribution(const QString &attribution).
The attribution for OpenStreetMapLayer may not be changed.
This function is disabled for OpenStreetMapLayer. Calling this will output a warning on the console and the function has no effect.
attribution is ignored.