@honua/sdk-js
    Preparing search index...

    Client for a Honua /sharing/rest Portal facade. Lets a repointed ArcGIS app authenticate, search for items, and open an item that resolves to a /rest/services URL — carrying the portal token through to the opened layer so the whole flow authenticates end to end.

    import { PortalCompat } from "@honua/sdk-js/client-compat";

    const portal = new PortalCompat({ portalUrl: "https://honua.example" });
    await portal.generateToken({ username: "u", password: "p" });
    const { results } = await portal.search({ q: "roads" });
    const opened = await portal.openFeatureLayer(results[0]);
    if (opened.type === "feature-service") {
    await opened.layer.queryFeatures({ where: "1=1" });
    }
    Index

    Constructors

    Properties

    sharingRestBase: string

    Normalized .../sharing/rest base for this portal.

    Methods