Skip To Content ArcGIS for Developers Sign In Dashboard

OpenStreetMapLayer Class

(Esri::ArcGISRuntime::OpenStreetMapLayer)

A layer that displays OpenStreetMap map tiles. More...

Header: #include <OpenStreetMapLayer>
Since: Esri::ArcGISRuntime 100.1
Inherits: WebTiledLayer

Public Functions

OpenStreetMapLayer(QObject *parent = nullptr)
~OpenStreetMapLayer()

Reimplemented Public Functions

virtual void setAttribution(const QString &attribution)

Additional Inherited Members

Detailed Description

A layer that displays OpenStreetMap map tiles.

Member Function Documentation

OpenStreetMapLayer::OpenStreetMapLayer(QObject *parent = nullptr)

Constructor that takes an optional parent.

OpenStreetMapLayer::~OpenStreetMapLayer()

Destructor.

[virtual] void OpenStreetMapLayer::setAttribution(const QString &attribution)

Reimplemented from ImageTiledLayer::setAttribution().

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.


Feedback on this topic?