Creates a JavaScript command as a String that, when executed on the client, centers the map at the given position, doing a fluid pan to the position if it is within the current map viewport.

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 PanTo(
	ICoordinates position
)

Parameters

position
Type: Reimers.Core.Maps..::..ICoordinates
The LatLng to center the Map on.

Return Value

A JavaScript command as a String.

Remarks

This method creates a JavaScript command that must be sent to a method that executes it. Merely executing the method does not produce any results.

See Also