• JMap.Map.setDefaultZoomOptions

    Set zoom default values in JMap Cloud NG Core.

    This default values will be used in all methods that use zoom options.

    If zoom options are passed in methods, this default values will be overriden by passed values.

    If no object is passed, default values are reset with JMap Cloud NG Core default values.

    Parameters

    • Optional options: Partial<JZoomOptions>

      animation, paddings, and maxZoom

    Returns void

    Example

    // Set default values used by JMap Cloud NG Core
    JMap.Map.setDefaultZoomOptions({
    animate: false,
    paddingTop: 20,
    paddingLeft: 20,
    paddingRight: 20,
    paddingBottom: 20
    })

    // Reset default values with JMap Cloud NG Core default values
    // animate=true, and paddings are all 50.
    JMap.Map.setDefaultZoomOptions()