Skip to content

geo.service

5 functions / 7 types

Index

FunctionDescription
addDiscover a raster service once and retain its metadata until it is removed or the engine ends. Accepts WMTS endpoints and capabilities URLs, ArcGIS service and item URLs, and XYZ templates. An omitted kind enables detection. Failed discovery does not register a service.
getLayersReturn advertised datasets from retained metadata without making a network request.
getPreviewFetch a preview image using retained service metadata and the service’s credentials. Missing tile coverage returns no image. Elevation previews show shaded relief.
refreshReplace a service’s discovery metadata. Existing map layers keep their current presentation. A failed refresh leaves the previous metadata intact.
removeRemove a discovered service. Fails while a map layer references it.
TypeDescription
ArcgisLayerMetadata
DiscoveredLayer
ServiceInfoA discovered endpoint. Credentials remain in the engine and are not returned here.
ServiceKind
ServiceLayerMetadata
XyzMetadata
XyzOptions

add

add(args: { auth?: GeoMapLayerTileAuth; kind?: GeoServiceServiceKind; url: string; xyz?: GeoServiceXyzOptions }, transactionId?: string): Promise<GeoServiceServiceInfo>

Discover a raster service once and retain its metadata until it is removed or the engine ends. Accepts WMTS endpoints and capabilities URLs, ArcGIS service and item URLs, and XYZ templates. An omitted kind enables detection. Failed discovery does not register a service.

Returns: A discovered endpoint. Credentials remain in the engine and are not returned here.

Returns Promise<GeoServiceServiceInfo>.

auth optional : GeoMapLayerTileAuth

kind optional : GeoServiceServiceKind

url : string

xyz optional : GeoServiceXyzOptions

transactionId optional : string

getLayers

getLayers(args: { service: GeoServiceId }, transactionId?: string): Promise<Array<GeoServiceDiscoveredLayer>>

Return advertised datasets from retained metadata without making a network request.

Returns Promise<Array<GeoServiceDiscoveredLayer>>.

service : GeoServiceId

transactionId optional : string

getPreview

getPreview(args: { elevation?: GeoMapLayerElevationOptions; layer: GeoServiceLayerId; role?: GeoMapLayerLayerRole; selection?: GeoServiceLayerSelection }, transactionId?: string): Promise<GeoCatalogPreviewTile | undefined>

Fetch a preview image using retained service metadata and the service’s credentials. Missing tile coverage returns no image. Elevation previews show shaded relief.

Returns Promise<GeoCatalogPreviewTile | undefined>.

elevation optional : GeoMapLayerElevationOptions

role optional : GeoMapLayerLayerRole

selection optional : GeoServiceLayerSelection

transactionId optional : string

refresh

refresh(args: { auth?: GeoMapLayerTileAuth; service: GeoServiceId }, transactionId?: string): Promise<GeoServiceServiceInfo>

Replace a service’s discovery metadata. Existing map layers keep their current presentation. A failed refresh leaves the previous metadata intact.

Returns: A discovered endpoint. Credentials remain in the engine and are not returned here.

Returns Promise<GeoServiceServiceInfo>.

auth optional : GeoMapLayerTileAuth

Absent, retain credentials. An empty value clears them. Existing map layers keep theirs.

service : GeoServiceId

transactionId optional : string

remove

remove(args: { service: GeoServiceId }, transactionId?: string): Promise<void>

Remove a discovered service. Fails while a map layer references it.

Returns Promise<void>.

service : GeoServiceId

transactionId optional : string

ArcgisLayerMetadata

layerNumber optional : number

Absent for the complete service image; present for an advertised sublayer.

parentLayerNumber optional : number

sublayerNumbers optional : Array<number>

DiscoveredLayer

summary optional : string

title : string

ServiceInfo

A discovered endpoint. Credentials remain in the engine and are not returned here.

title : string

ServiceKind

Enum

Arcgis = 1

Wmts = 0

Xyz = 2

ServiceLayerMetadata

type GeoServiceServiceLayerMetadata = { kind: "wmts"; value: GeoCatalogServiceLayer } | { kind: "arcgis"; value: GeoServiceArcgisLayerMetadata } | { kind: "xyz"; value: GeoServiceXyzMetadata }

XyzMetadata

maxZoom : number

minZoom : number

subdomains optional : Array<string>

tileSize : number

XyzOptions

maxZoom optional : number

minZoom optional : number

subdomains optional : Array<string>

tileSize optional : number