Let’s try to use Google Maps with LeapMotion, the popular hand input controller.Once I received LeapMotion, I started developing some ideas in my mind: one of them, it’s controlling GoogleMaps by using a desired hand.

First of all we need the Leap javascript library, at this time you can download it at the following link .

Once downloaded and included in our page, we have to load the LeapMotion engine:

https://gist.github.com/8300046

Row #1: we are creating a new Leap.Controller setting the enableGestures parameter to true because this will allow us to access to the LeapMotion and being informed about Gestures handled by the SDK.

The other rows are pretty clear themselves, they are listening to events, if we connect or disconnect to/from a Leap controller (if any available), and the last event it’s listening to the “on frame” event, triggered when Leap fires a motion state change.