Function createSources

  • Create Honua SDK surface instances for each source in a style.

    Non-Honua sources (e.g. vector, raster, geojson) are mapped to null — these should be handled directly by MapLibre's built-in source types.

    Parameters

    Returns Map<string, ResolvedSource>

    const sources = createSources(client, style);
    const parcels = sources.get("parcels"); // HonuaFeatureLayer
    if (parcels instanceof HonuaFeatureLayer) {
    const features = await parcels.queryFeatures({ where: "status = 'active'" });
    }