• JMap.Application.Annotation.setPresetColors

    Set the preset colors of color pickers using the given colors.

    Parameters

    • presetColors: string[]

      A array of preset hex colors

    Returns void

    Throws

    if presetColors not an array, does not contain string or is too big

    Example

    // Set the preset colors with 2 color
    const presetColors = [
    "#29D1EA",
    "#D2FDDF"
    ]

    JMap.Application.Annotation.setPresetColors(presetColors)