Function geoServicesGPServiceSource

  • Build a Source over an Esri-style GP (geoprocessing) service. GP services run async tasks rather than hosting features; the canonical feature surface throws and task submission / status / result lookup live behind Source.protocol("geoservices-gp-service").

    Type Parameters

    • T

    Parameters

    Returns CapabilityAwareSource<T>

    const gp = dataset.source("buffer-task")!.protocol("geoservices-gp-service");
    const job = await gp!.submitJob({ inputs: { distance: 500 } });
    const result = await gp!.awaitJobResult(job.jobId);