code: public void addStateEventHandler(MapStateEventType type, StateEventHandler h) {
          String key = registerEventHandler(h);
          String mcall = "google.maps.event.addListener(" + getVariableName() + ", '" + type.name() + "', "
                  + "function() {document.jsHandlers.handleStateEvent('" + key + "');});";
          //System.out.println("addStateEventHandler mcall: " + mcall);
          runtime.execute(mcall);
  
      }
docs: Adds a handler for a state type event on the map.
  <p>
  We could allow this to handle any state event by adding a parameter
  JavascriptObject obj, but we would then need to loosen up the event type
  and either accept a String value, or fill an enum with all potential
  state events.
  
  @param type Type of the event to register against.
  @param h Handler that will be called when the event occurs.