isAGOHostedService

Function

Used to determine if a service is hosted on ArcGIS Online

Includes exlusion logic that prevents (secured) proxied services from returning true as we can't be sure if they are hosted or not

  • isAGOHostedService(url: string) : boolean

Parameters

Parameter Type Default Notes
url Required string

Returns

true if the url is an ArcGIS Online hosted service

boolean

Function defined in common/src/content/isAGOHostedService.ts:15