• JMap.Map.setDefaultZoomOptions

    Set zoom default values in JMap Server 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 Server NG Core default values.

    Parameters

    • Optional options: Partial<JZoomOptions>

      animation, paddings, and maxZoom

    Returns void

    Example

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

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