Commits

Todor Todorov committed f9cdb09

added zoomIn/Out methods

  • Participants
  • Parent commits e3ac53e

Comments (0)

Files changed (2)

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

 	public Element getViewport() {
 		return MapImpl.getViewport(getJSObject());
 	}
+
+	/**
+	 * zoom in with one step.
+	 */
+	public void zoomIn() {
+		MapImpl.zoomIn(getJSObject());
+	}
+
+	/**
+	 * zoom out with one step.
+	 */
+	public void zoomOut() {
+		MapImpl.zoomOut(getJSObject());
+	}
 }

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

         return map.getViewport();
     }-*/;
 
+	public static native void zoomIn(JSObject map)/*-{
+	    map.zoomIn();
+	}-*/;
+
+	public static native void zoomOut(JSObject map)/*-{
+	    map.zoomOut();
+	}-*/;
+
 }