• JMap.MapContext.addCssClassesToIgnoreForPreviewImage

    Add css classes in the list of css class to ignore/hide when processing the preview image.

    Parameters

    • classes: string[]

      css classes

    Returns void

    Throws

    if given classes param is not a string array

    Example

    // dom elements that having "my-class-that-is-visible-on-screen-but-want-to-hide-in-preview"
    // css class will be hidden in the preview image
    JMap.MapContext.addCssClassesToIgnoreForPreviewImage([
    "my-class-that-is-visible-on-screen-but-want-to-hide-in-preview"
    ])