Package org.zkoss.gmaps.event

Examples of org.zkoss.gmaps.event.MapTypeChangeEvent


      final Component mitem =  selItems == null || selItems.isEmpty() ?
          null : (Component) selItems.iterator().next();
      setSelectedItem(mitem);
      Events.postEvent(evt);
    } else if (cmd.equals("onMapTypeChange")) {
      final MapTypeChangeEvent evt = MapTypeChangeEvent.getMapTypeChangeEvent(request);
      setMapTypeByClient(evt.getType());
      Events.postEvent(evt);
    } else if (cmd.equals("onMapDrop")) {
      final MapDropEvent evt = MapDropEvent.getMapDropEvent(request);
      final Component dragged = evt.getDragged();
      if (dragged instanceof Gmarker)
        ((Gmarker) dragged).setAnchor(evt.getLatLng());
      Events.postEvent(evt);
    } else
      super.service(request, everError);
  }
View Full Code Here

TOP

Related Classes of org.zkoss.gmaps.event.MapTypeChangeEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.