getAnnotationServiceUrl

Function
import { request } from "@esri/arcgis-rest-request";
import { getAnnotationServiceUrl } from "@esri/hub-events";
// org ids can be retrieved via a call to portals/self
request("http://custom.maps.arcgis.com/sharing/rest/portals/self")
  .then(response => {
    getAnnotationServiceUrl(response.id)
      .then(url)
  })

Fetch the annotations associated with a Hub Site.

  • getAnnotationServiceUrl(orgId: string, requestOptions: IRequestOptions) : Promise<string>

Parameters

Parameter Type Default Notes
orgId Required string

Identifier of the ArcGIS Online Organization

requestOptions Optional IRequestOptions

request options that may include authentication

Available requestOptions

Property Type Notes

Returns

A Promise that will resolve with an annotations url for a Hub enabled ArcGIS Online organization.

Promise<string>

Function defined in packages/annotations/src/util.ts:33