Commits

jo...@postel  committed c00229a

Added empty contructor to Bounds.

  • Participants
  • Parent commits 770c627

Comments (0)

Files changed (2)

File gwt-openlayers-client/src/main/java/org/gwtopenmaps/openlayers/client/Bounds.java

  * @author Erdem Gunay
  * @author Curtis Jensen
  * @author Edwin Commandeur
+ * @author Jon Britton, SpiffyMap Ltd.
  */
 public class Bounds extends OpenLayersObjectWrapper {
 
 				upperRightX,
 				upperRightY));
 	}
+    
+    /**
+     * Create an empty Bounds object with coordinates set to null
+     */
+    public Bounds() {
+        this(BoundsImpl.create());
+    }
 
 	public double[] toArray(){
 		JSObject boundsOpaque = BoundsImpl.toArray(getJSObject());

File gwt-openlayers-client/src/main/java/org/gwtopenmaps/openlayers/client/BoundsImpl.java

 /**
  *
  * @author Erdem Gunay
- *
+ * @author Jon Britton, SpiffyMap Ltd.
  */
 class BoundsImpl {
 
 	public static native JSObject create(double lllon, double lllat, double urlon, double urlat)/*-{
 		return new $wnd.OpenLayers.Bounds(lllon, lllat, urlon, urlat);
 	}-*/;
+    
+    public static native JSObject create()/*-{
+		return new $wnd.OpenLayers.Bounds();
+	}-*/;
 
 	public static native JSObject toArray(JSObject bounds)/*-{
 		return bounds.toArray();