The simplest Honua map: hand a saved MapPackage to one controller, set it on the element, and you have a live map. No feature queries, no wiring — this page boots the shared Maui basemap (a PMTiles vector basemap through demo.honua.io) exactly the way every other sample starts.
var controller =
HonuaWC.createHonuaWebComponentController({
mapPackage: {
mapPackageId: "hello-webmap",
format: "honua_map_package.v1",
status: "Ready",
initialView: {
center: [-156.47, 20.83],
zoom: 9.4
},
mapSpec: spec // background + basemap
}
});
document.getElementById("s-map")
.controller = controller;