Function styleUsesPmtiles

  • Whether a composed MapLibre style references at least one pmtiles:// source. Used by loadMapPackage to decide whether the protocol must be registered before map.setStyle.

    Parameters

    • style: undefined | null | {
          sources?: Record<string, unknown>;
      }
    • scheme: string = PMTILES_PROTOCOL_SCHEME

    Returns boolean