Creates a JavaScript command as a String that, when executed on the client, pans the map the given given distance in pixels, doing a fluid pan to the position.

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 PanBy(
	int horizontal,
	int vertical
)

Parameters

horizontal
Type: System..::..Int32
The horizontal distance in pixels to move the map as Int32.
vertical
Type: System..::..Int32
The vertical distance in pixels to move the map as Int32.

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