Function useDataset

  • Build a memoized Dataset bound to the provider's client. The dataset identity is stable until its id, source descriptors, or policy change, so it is safe to pass its sources into useQuery across re-renders.

    Parameters

    Returns Dataset

    const dataset = useDataset({
    id: "incidents",
    sources: [{ id: "incidents", protocol: "geoservices-feature-service",
    locator: { url, serviceId: "incidents", layerId: 0 },
    capabilities: PROTOCOL_DEFAULT_CAPABILITIES["geoservices-feature-service"] }],
    });