import type { Collection, CollectionsPage, LandingPage, QueryParameters, QueryOptions } from "@arcgis/core/layers/ogc/types.js";Type definitions
Collection
- Since
- ArcGIS Maps SDK for JavaScript 5.0
An OGC API-Features collection.
landingPage
- Type
- LandingPage
- Since
- ArcGIS Maps SDK for JavaScript 5.0
The landing page of the OGC API-Features server hosting the collection.
CollectionsPage
- Since
- ArcGIS Maps SDK for JavaScript 5.0
The collections page for an OGC API-Features server.
collections
- Type
- Collection[]
- Since
- ArcGIS Maps SDK for JavaScript 5.0
An array of collections available from the OGC API-Features server.
LandingPage
- Since
- ArcGIS Maps SDK for JavaScript 5.0
The landing page of an OGC API-Features server.
url
- Type
- string
- Since
- ArcGIS Maps SDK for JavaScript 5.0
The url to the OGC API-Features server.
QueryParameters
- Since
- ArcGIS Maps SDK for JavaScript 5.0
apiKey
- Since
- ArcGIS Maps SDK for JavaScript 5.0
An authorization string used to access a resource or service. This property will append the API key to all requests made by the layer to the service. API keys are generated and managed in the portal. An API key is tied explicitly to an ArcGIS account; it is also used to monitor service usage. Setting a fine-grained API key on a specific class overrides the global API key.
If loading a secure layer with API authentication via a PortalItem, the API key needs to be set on the portalItem.
- Example
- // set the api key to access a protected serviceconst layer = new FeatureLayer({url: serviceUrl,apiKey: "YOUR_API_KEY"});
customParameters
- Type
- CustomParameters | null | undefined
- Since
- ArcGIS Maps SDK for JavaScript 5.0
A list of custom parameters appended to the URL of all resources fetched by the layer.
It's an object with key-value pairs where value is a string.
The layer's refresh() method needs to be called if the customParameters are updated at runtime.
- Example
- // send a custom parameter to your special servicelet layer = new MapImageLayer({url: serviceUrl,customParameters: {"key": "my-special-key"}});
QueryOptions
- Since
- ArcGIS Maps SDK for JavaScript 5.0
- Supertypes
- QueryParameters ‚ AbortOptions