getServiceTypeFromUrl

Function

parses map or feature service type from URL

parses map or feature service type from URL

  • getServiceTypeFromUrl(url: string) : string

Parameters

Parameter Type Default Notes
url Required string

map or feature service URL

Returns

item type, either "Map Service" or "Feature Service" or undefined for other types of URLs

string

Function defined in packages/common/src/urls/index.ts:33