Interface gmfFitOptions

interface gmfFitOptions {
    duration: number;
    maxZoom: number;
    minResolution: number;
    nearest: boolean;
    padding: number[];
}

Properties

duration: number

The duration of the animation in milliseconds. By default, there is no animation to the target extent.

maxZoom: number

Maximum zoom level that we zoom to. If minResolution is given, this property is ignored.

minResolution: number

Minimum resolution that we zoom to.

nearest: boolean

If the view constrainResolution option is true, get the nearest extent instead of the closest that actually fits the view.

padding: number[]

Padding (in pixels) to be cleared inside the view. Values in the array are top, right, bottom and left padding.