Overview Examples Documentation Download

arrow

map

po.arrow()
Constructs an arrow control with default settings. The arrow control provides key listeners for the arrow keys for panning, and the plus and minus keys for zooming. The arrow control allows multiple keys to be pressed simultaneously; for example, the pressing the left and down arrows simultaneously will cause the map to pan diagonally.
arrow.map([x])

Adds this control to the specified map x, removes this control from its current map, or returns the current map. This method is typically not called directly, but is needed to support the map’s add method and remove methods.

If the argument x is specified, this method returns this. If x is null, this control is removed from its current map; otherwise, this control is added to the specified map. If no arguments are specified, this method returns the current map, which may be null. Whew!

arrow.speed([x])
Sets or gets the pan speed. If the argument x is specified, this method sets the pan speed to the given pixel amount and returns this. If no arguments are specified, this method returns the current pan speed, which defaults to 16.
Polymaps is a project from SimpleGeo and Stamen.