MapLayerFormatRegistry Class

A registry of MapLayerFormats identified by their unique format IDs. The registry can be accessed via mapLayerFormatRegistry.

Methods

Name Description
constructor(opts?: MapLayerOptions): MapLayerFormatRegistry    
addMapLayerFetchHandler(handler: MapLayerFetchHandler): () => void Appends a MapLayerFetchHandler to the pipeline wrapping every map-layer network request issued through  
getAccessClient(formatId: string): MapLayerAccessClient | undefined    
isRegistered(formatId: string): boolean    
register(formatClass: MapLayerFormat): void    
setAccessClient(formatId: string, accessClient: MapLayerAccessClient): boolean    
validateSource(opts: ValidateSourceArgs): Promise<MapLayerSourceValidation>    
validateSource(formatId: string, url: string, userName?: string, password?: string, ignoreCache?: boolean): Promise<MapLayerSourceValidation>    

Properties

Name Type Description
configOptions Accessor ReadOnly MapLayerOptions    
restrictCredentialsToTrustedOrigins boolean Opt-in enforcement of origin restrictions on map-layer credentials.  
trustedCredentialsOrigins Accessor ReadonlyArray Origins (e.g.  
trustedCredentialsOrigins Setter trustedCredentialsOrigins(origins: ReadonlyArray): void    

Defined in

Last Updated: 03 December, 2026