Creates a JavaScript command as a String that, when executed on the client sets the viewport to contain the given bounds.

Namespace: Reimers.Google.Map
Assembly: Reimers.Google.Map (in Reimers.Google.Map.dll) Version: 5.3.95.699 (5.3.95.699)

Syntax

C#
public string FitBounds(
	IGeoRectangle bounds
)

Parameters

bounds
Type: Reimers.Core.Maps..::..IGeoRectangle
The viewport to resize to.

Return Value

A JavaScript command as a String.

See Also