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 common/src/urls/index.ts:46