@honua/sdk-js/webmap — WebMap JSON parse + symbol / renderer / popup converters.
@honua/sdk-js/webmap
import { parseWebMap } from "@honua/sdk-js/webmap";const webmapJson = await (await fetch("/path/to/webmap.json")).json();const { layers, warnings } = parseWebMap(webmapJson);if (warnings.length > 0) console.warn("WebMap conversion warnings:", warnings); Copy
import { parseWebMap } from "@honua/sdk-js/webmap";const webmapJson = await (await fetch("/path/to/webmap.json")).json();const { layers, warnings } = parseWebMap(webmapJson);if (warnings.length > 0) console.warn("WebMap conversion warnings:", warnings);
import { CONTRACT, getContractSummary } from "@honua/sdk-js/webmap";const summary = getContractSummary();console.log(summary.supported); // ["FeatureLayer", "MapImageLayer", ...]console.log(summary.unsupported); // entries with `support: "unsupported"` + reason Copy
import { CONTRACT, getContractSummary } from "@honua/sdk-js/webmap";const summary = getContractSummary();console.log(summary.supported); // ["FeatureLayer", "MapImageLayer", ...]console.log(summary.unsupported); // entries with `support: "unsupported"` + reason
@honua/sdk-js/webmap— WebMap JSON parse + symbol / renderer / popup converters.Example
Example: Inspect the compatibility contract