@versatiles/map-state
    Preparing search index...

    Function sanitizeStyle

    • A style of the role as a map state has it, e.g. in a .mapjson file: only its valid fields that differ from their default (STYLE_DEFAULTS) of that role, or undefined if none is. Fields of other roles are left out, e.g. arrowStart of a marker.

      Type Parameters

      Parameters

      • role: R
      • value: unknown

      Returns RoleStyles[R] | undefined