public void addUIEventHandler ( JavascriptObject obj , UIEventType type , UIEventHandler h ) { String key = registerEventHandler ( h ) ; String mcall = "google.maps.event.addListener(" + obj . getVariableName ( ) + ", '" + type . name ( ) + "', " + "function(event) {document.jsHandlers.handleUIEvent('" + key + "', event);});" ; //.latLng //System.out.println("addUIEventHandler mcall: " + mcall); runtime . execute ( mcall ) ; }
Adds a handler for a mouse type event on the map .