Skip To Content ArcGIS for Developers Sign In Dashboard

OpenStreetMapLayer Class


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

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

Public Functions

OpenStreetMapLayer(QObject *parent = nullptr)

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.



[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?