org.zkoss.gmaps.event
Class MapMoveEvent

java.lang.Object
  extended by org.zkoss.zk.ui.event.Event
      extended by org.zkoss.gmaps.event.MapMoveEvent

public class MapMoveEvent
extends org.zkoss.zk.ui.event.Event

Represents a Google Maps Gmaps related event which is triggered whenever the center is moved or zoom level is changed.

Author:
henrichen

Constructor Summary
MapMoveEvent(java.lang.String name, org.zkoss.zk.ui.Component target, double lat, double lng, double swlat, double swlng, double nelat, double nelng)
          Constructs a Google Maps moving relevant event.
 
Method Summary
 double getLat()
          Returns the latitude of the Google Map center after moved.
 double getLng()
          Returns the longitude of the Google Map center after moved.
 double getNeLat()
          Returns the bounded north east latitude after moved.
 double getNeLng()
          Returns the bounded north east longitude after moved.
 double getSwLat()
          Returns the bounded south west latitude after moved.
 double getSwLng()
          Returns the bounded south west longitude after moved.
 
Methods inherited from class org.zkoss.zk.ui.event.Event
getData, getName, getPage, getTarget, isPropagatable, stopPropagation, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MapMoveEvent

public MapMoveEvent(java.lang.String name,
                    org.zkoss.zk.ui.Component target,
                    double lat,
                    double lng,
                    double swlat,
                    double swlng,
                    double nelat,
                    double nelng)
Constructs a Google Maps moving relevant event.

Method Detail

getLat

public double getLat()
Returns the latitude of the Google Map center after moved.


getLng

public double getLng()
Returns the longitude of the Google Map center after moved.


getSwLat

public double getSwLat()
Returns the bounded south west latitude after moved.

Returns:
the bounded south west latitude after moved.
Since:
2.0_8

getSwLng

public double getSwLng()
Returns the bounded south west longitude after moved.

Returns:
the bounded south west longitude after moved.
Since:
2.0_8

getNeLat

public double getNeLat()
Returns the bounded north east latitude after moved.

Returns:
the bounded north east latitude after moved.
Since:
2.0_8

getNeLng

public double getNeLng()
Returns the bounded north east longitude after moved.

Returns:
the bounded north east longitude after moved.
Since:
2.0_8


Copyright © 2005-2007 Potix Corporation. All Rights Reserved.