toMapBounds

open fun toMapBounds(mercatorVector: List<Mercator>): MapstedMapBounds

Will extract min/max bounds from mercatorVector with default fit

Return

The map bounds based on the inputted mercatorVector

Parameters

mercatorVector

List of mercators (e.g., polygon or polyline) to fit in map bounds


open fun toMapBounds(mercatorVector: List<Mercator>, deltaRatioX: Double, deltaRatioY: Double, minDeltaX: Double, minDeltaY: Double): MapstedMapBounds

Will extract min/max bounds from mercatorVector

Return

The map bounds based on the inputted mercatorVector

Parameters

mercatorVector

List of mercators (e.g., polygon or polyline) to fit in map bounds

deltaRatioX

Multiplicative factor for computing deltaX. (maxX - minX) * deltaRatioX

deltaRatioY

Multiplicative factor for computing deltaY. (maxY - minY) * deltaRatioY

minDeltaX

The minimum value of deltaX which is the buffer on the x-dimension (minX - deltaX, maxX + deltaX)

minDeltaY

The minimum value of deltaY which is the buffer on the y-dimension (minY - deltaY, maxY + deltaY)