• JMap.Application.Annotation.addPresetColor

    Add the given color to the preset colors of color pickers if not already present.

    Parameters

    • presetColor: string

      A hex color

    Returns void

    Throws

    if presetColor not an string or is empty

    Example

    // Add the color #D2FDDF to the preset colors
    const presetColor = "#D2FDDF"

    JMap.Application.Annotation.addPresetColor(presetColor)