Skip to content

Commit 682906b

Browse files
paodbjavier-godoy
authored andcommitted
fix: use setProperty instead of setAttribute for zoom property
Close #132
1 parent 91c0b84 commit 682906b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/flowingcode/vaadin/addons/googlemaps/GoogleMap.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ public LatLon getCenter() {
119119
* @param zoom New amount of the zoom.
120120
*/
121121
public void setZoom(int zoom) {
122-
this.getElement().setAttribute("zoom", Integer.toString(zoom));
122+
this.getElement().setProperty("zoom", zoom);
123123
}
124124

125125
/**

0 commit comments

Comments
 (0)