diff --git a/src/main/java/com/flowingcode/vaadin/addons/googlemaps/GoogleMap.java b/src/main/java/com/flowingcode/vaadin/addons/googlemaps/GoogleMap.java index 8daf37b..5560784 100644 --- a/src/main/java/com/flowingcode/vaadin/addons/googlemaps/GoogleMap.java +++ b/src/main/java/com/flowingcode/vaadin/addons/googlemaps/GoogleMap.java @@ -119,7 +119,7 @@ public LatLon getCenter() { * @param zoom New amount of the zoom. */ public void setZoom(int zoom) { - this.getElement().setAttribute("zoom", Integer.toString(zoom)); + this.getElement().setProperty("zoom", zoom); } /**