Package org.zkoss.gmaps

Examples of org.zkoss.gmaps.LatLng


    final int x = xn instanceof Double ? (int) Math.round(((Double)xn).doubleValue()) : xn.intValue();
    final int y = yn instanceof Double ? (int) Math.round(((Double)yn).doubleValue()) : yn.intValue();
    final int pageX = pxn instanceof Double ? (int) Math.round(((Double)pxn).doubleValue()) : pxn.intValue();
    final int pageY = pyn instanceof Double ? (int) Math.round(((Double)pyn).doubleValue()) : pyn.intValue();
    return new MapMouseEvent(request.getCommand(), comp,
        ref, new LatLng(lat, lng), x, y, pageX, pageY, AuRequests.parseKeys(data));
  }
View Full Code Here


   * @param keys a combination of {@link #CTRL_KEY}, {@link #SHIFT_KEY}
   * and {@link #ALT_KEY}.
   */
  public MapMouseEvent(String name, Component target, Component ref,
    double lat, double lng, int x, int y, int pageX, int pageY, int keys) {
    this(name, target, ref, new LatLng(lat, lng), x, y, pageX, pageY, keys);
  }
View Full Code Here

    final double lng = ((Number)data.get("lng")).doubleValue();
    final double swlat = ((Number)data.get("swlat")).doubleValue();
    final double swlng = ((Number)data.get("swlng")).doubleValue();
    final double nelat = ((Number)data.get("nelat")).doubleValue();
    final double nelng = ((Number)data.get("nelng")).doubleValue();
    return new MapMoveEvent(request.getCommand(), comp, new LatLng(lat, lng),
        new LatLngBounds( new LatLng(swlat, swlng), new LatLng(nelat, nelng)));
  }
View Full Code Here

  }
 
  /** Constructs a Google Maps moving relevant event.
   */
  public MapMoveEvent(String name, Component target, double lat, double lng, double swlat, double swlng, double nelat, double nelng) {
    this(name, target, new LatLng(lat, lng), new LatLngBounds( new LatLng(swlat, swlng), new LatLng(nelat, nelng)));
  }
View Full Code Here

    final int x = xn instanceof Double ? (int) Math.round(((Double)xn).doubleValue()) : xn.intValue();
    final int y = yn instanceof Double ? (int) Math.round(((Double)yn).doubleValue()) : yn.intValue();
    final int pageX = pxn instanceof Double ? (int) Math.round(((Double)pxn).doubleValue()) : pxn.intValue();
    final int pageY = pyn instanceof Double ? (int) Math.round(((Double)pyn).doubleValue()) : pyn.intValue();
    return new MapDropEvent(request.getCommand(), comp,
        ref, new LatLng(lat, lng), x, y, pageX, pageY, AuRequests.parseKeys(data));
  }
View Full Code Here

  /** Constructs a drop event.
   * @param dragged the component being dragged and drop to {@link #getTarget}.
   */
  public MapDropEvent(String name, Component target, Component dragged,
    double lat, double lng, int x, int y, int pageX, int pageY, int keys) {
    this(name, target, dragged,new LatLng(lat, lng), x, y, pageX, pageY, keys);
  }
View Full Code Here

    final double lat = ((Number)data.get("lat")).doubleValue();
    final double lng = ((Number)data.get("lng")).doubleValue();
    final double oldlat = ((Number)data.get("oldlat")).doubleValue();
    final double oldlng = ((Number)data.get("oldlng")).doubleValue();
    return new CenterChangeEvent(request.getCommand(), comp, new LatLng(lat, lng), new LatLng(oldlat, oldlng));
  }
View Full Code Here

  }

  /** Constructs a Google Maps center change event.
   */
  public CenterChangeEvent(String name, Component target, double lat, double lng, double oldlat, double oldlng) {
    this(name, target, new LatLng(lat, lng), new LatLng(oldlat, oldlng));
  }
View Full Code Here

TOP

Related Classes of org.zkoss.gmaps.LatLng

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.