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-basemap.html below:

Basemap Class | ArcGIS Maps SDK for Qt

A basemap is a non-editable layer that provides background, or reference information, in your map or scene. More...

Member Function Documentation [explicit] Basemap::Basemap(QObject *parent = nullptr)

Creates a basemap. Layers need to be added to the basemap before it can be used.

[explicit, since Esri::ArcGISRuntime 100.10] Basemap::Basemap(Esri::ArcGISRuntime::BasemapStyle basemapStyle, QObject *parent = nullptr)

Creates a basemap with a BasemapStyle. These basemaps are secured and access requires either an API key or an authenticated user account.

This function was introduced in Esri::ArcGISRuntime 100.10.

See also BasemapStyle.

[explicit] Basemap::Basemap(Esri::ArcGISRuntime::Item *item, QObject *parent = nullptr)

Creates a basemap with a portal item of type PortalItemType::WebMap.

The PortalItem automatically loads when the Basemap loads. If the loaded Item is not a portal item of type PortalItemType::WebMap, the basemap fails to load.

[explicit] Basemap::Basemap(Esri::ArcGISRuntime::Layer *baseLayer, QObject *parent = nullptr)

Creates a basemap with a single base layer.

[explicit] Basemap::Basemap(const QUrl &url, QObject *parent = nullptr)

Creates a basemap with the URL.

If the specified URL is a portal item URL (see PortalItem::PortalItem(const QUrl&, QObject*) for the supported URL formats), the underlying PortalItem will be created and accessible through item.

The URL can be one of three possible types:

{PortalItem::PortalItem(const QUrl&, QObject*)}, {Esri::ArcGISRuntime::Basemap::item} {item}

See also PortalItem and Esri::ArcGISRuntime::PortalItem::PortalItem(const QUrl&, QObject*).

[since Esri::ArcGISRuntime 200.3] Basemap::Basemap(Esri::ArcGISRuntime::BasemapStyle basemapStyle, Esri::ArcGISRuntime::BasemapStyleParameters *basemapStyleParameters, QObject *parent = nullptr)

Creates a basemap from an initial BasemapStyle with additional parameters to control settings like language.

These basemaps are secured and access requires either an API key or an authenticated user.

The initial state of the Basemap is LoadStatus::NotLoaded. When the Basemap is loaded the values specified in the BasemapStyleParameters are evaluated. See BasemapStyleParameters for information about the expected behavior for each parameter when the Basemap is loaded.

This function was introduced in Esri::ArcGISRuntime 200.3.

See also BasemapStyle.

Basemap::Basemap(const QList<Esri::ArcGISRuntime::Layer *> &baseLayers, const QList<Esri::ArcGISRuntime::Layer *> &referenceLayers, QObject *parent = nullptr)

Construct a Basemap from baseLayers and referenceLayers with an optional parent.

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

Destructor.

[override virtual, since Esri::ArcGISRuntime 100.11] QString Basemap::apiKey() const

Reimplements: ApiKeyResource::apiKey() const.

Returns the API key allows your app to access ArcGIS location services and private portal items.

An API key is a unique long-lived access token that is used to authenticate and monitor requests to ArcGIS location services and private portal items. You can create and manage an API key using your portal when you sign in with an ArcGIS Location Platform account or an ArcGIS Online account with administrator access or a custom role that has the `Generate API keys` privilege. To learn how to create and manage API keys, go to the Create an API Key tutorial. You must ensure that your API key has the correct privileges to access secure resources.

Note: An API key created with a referrer is not supported. If you need service requests to include the referrer, use the SDK's functionality to intercept the request and add an HTTP referer header.

In addition to setting an ArcGISRuntimeEnvironment::apiKey at a global level for your application, you can set it on any class that implements ApiKeyResource. This overrides the ArcGISRuntimeEnvironment::apiKey and enables more granular usage telemetry and management of ArcGIS location resources used by your app.

Classes that expose an API key property by implementing ApiKeyResource include:

For more information, see API key authentication and Types of authentication.

This function was introduced in Esri::ArcGISRuntime 100.11.

See also setApiKey().

Esri::ArcGISRuntime::LayerListModel *Basemap::baseLayers() const

Returns the collection of base layers in this basemap.

Base layers are drawn beneath all other layers in the Map or Scene. They are designed to provide a visual reference to help orient the user. Aerial imagery, terrain, and streets are examples of basemap layers. The collection can be empty but it is never nullptr.

This collection is specific to this basemap so you cannot reuse a collection coming from another Basemap.

See also Layer and GeoModel::operationalLayers.

[override virtual] void Basemap::cancelLoad()

Reimplements: Loadable::cancelLoad().

See Loadable.

[since Esri::ArcGISRuntime 200.1] Esri::ArcGISRuntime::Basemap *Basemap::clone(QObject *parent = nullptr) const

Clones the basemap to a new instance with an optional parent.

Returns a new instance of the current basemap.

All objects referenced by the basemap, such as layers or portal item, are copied as well.

This function was introduced in Esri::ArcGISRuntime 200.1.

[signal] void Basemap::doneLoading(const Esri::ArcGISRuntime::Error &loadError)

Signal emitted when Basemap is done loading.

Note: If there is a load error it will also be emitted on the errorOccurred signal.

See also Loadable and Object.

[static] Esri::ArcGISRuntime::Basemap *Basemap::fromJson(const QString &json, QObject *parent = nullptr)

Creates a new Basemap from json with an optional parent.

See also JsonSerializable.

Esri::ArcGISRuntime::Item *Basemap::item() const

Returns the portal item associated with this basemap.

See also Basemap.

[override virtual] void Basemap::load()

Reimplements: Loadable::load().

See Loadable.

[override virtual] Esri::ArcGISRuntime::Error Basemap::loadError() const

Reimplements: Loadable::loadError() const.

See Loadable.

[override virtual] Esri::ArcGISRuntime::LoadStatus Basemap::loadStatus() const

Reimplements: Loadable::loadStatus() const.

See Loadable.

[signal] void Basemap::loadStatusChanged(Esri::ArcGISRuntime::LoadStatus loadStatus)

loadStatus See Loadable.

QString Basemap::name() const

Returns the name of this basemap.

See also setName().

Esri::ArcGISRuntime::LayerListModel *Basemap::referenceLayers() const

Returns the collection of reference layers in this basemap.

Reference layers are drawn on top all other layers in the Map or Scene to display information such as boundaries, labels, and traffic networks. The collection can be empty but it is never nullptr.

This collection is specific to this basemap so you cannot reuse a collection coming from another Basemap.

See also Layer, GeoModel::operationalLayers, and baseLayers.

[override virtual] void Basemap::retryLoad()

Reimplements: Loadable::retryLoad().

See Loadable.

[override virtual, since Esri::ArcGISRuntime 100.11] void Basemap::setApiKey(const QString &apiKey)

Reimplements: ApiKeyResource::setApiKey(const QString &apiKey).

Sets the API key to apiKey.

This function was introduced in Esri::ArcGISRuntime 100.11.

See also apiKey().

void Basemap::setName(const QString &name)

Sets the name of the Basemap.

See also name().

[override virtual] QString Basemap::toJson() const

Reimplements: JsonSerializable::toJson() const.

Gets the json representation of this object.

See also JsonSerializable.

[override virtual] QUrl Basemap::url() const

Reimplements: RemoteResource::url() const.

Gets the URL of the Basemap.

Returns the URL.


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