Skip To Content ArcGIS for Developers Sign In Dashboard

BingMapsLayer Class

(Esri::ArcGISRuntime::BingMapsLayer)

A Bing Maps layer displays map content from a Bing Maps web service. More...

Header: #include <BingMapsLayer>
Since: Esri::ArcGISRuntime 100.1
Inherits: ServiceImageTiledLayer

Public Functions

BingMapsLayer(const QString &bingMapsKey, BingMapsLayerStyle style, QObject *parent = nullptr)
BingMapsLayer(Portal *portal, BingMapsLayerStyle style, QObject *parent = nullptr)
~BingMapsLayer()
QString culture() const
QString key() const
Portal *portal() const
void setCulture(const QString &culture)
void setKey(const QString &bingMapsKey)
BingMapsLayerStyle style() const

Additional Inherited Members

Detailed Description

A Bing Maps layer displays map content from a Bing Maps web service.

The service provides access to static map tiles and imagery meta-data. The Bing Maps layer requires a Bing Maps key to be set. There are 2 ways to get a Bing Maps key: from a portal which contains the Bing Maps key, or by programmatically setting the Bing Maps key on the layer. These two methods are mutually exclusive.

Usage of BingMapsLayer in ArcGIS Runtime requires adherence to Microsoft's Mobile Brand Guidelines.

Member Function Documentation

BingMapsLayer::BingMapsLayer(const QString &bingMapsKey, BingMapsLayerStyle style, QObject *parent = nullptr)

Constructor that takes a bingMapsKey, style, and an optional parent.

BingMapsLayer::BingMapsLayer(Portal *portal, BingMapsLayerStyle style, QObject *parent = nullptr)

Constructor that takes a portal, style, and an optional parent.

BingMapsLayer::~BingMapsLayer()

Destructor.

QString BingMapsLayer::culture() const

Returns the culture for the layer.

The culture affects the localization of certain items, such as street names or country names.

See Supported culture codes.

Note: the culture cannot be changed after the layer is loaded.

See also setCulture().

QString BingMapsLayer::key() const

Returns the Bing Maps key.

See also setKey().

Portal *BingMapsLayer::portal() const

Returns the Portal the layer loaded its Bing Maps API key from.

void BingMapsLayer::setCulture(const QString &culture)

Sets the culture for the layer to culture.

The culture affects the localization of certain items, such as street names or country names.

See Supported culture codes.

Note: the culture cannot be changed after the layer is loaded.

See also culture().

void BingMapsLayer::setKey(const QString &bingMapsKey)

Sets the Bing Maps key to bingMapsKey.

See also key().

BingMapsLayerStyle BingMapsLayer::style() const

Returns the BingMapsLayerStyle for the layer.


Feedback on this topic?