add tool names for constrained pan and zoom

And also implement constrained pan and zoom on the js side...