Skip to content

Commit

Permalink
fix: use setProperty instead of setAttribute for zoom property
Browse files Browse the repository at this point in the history
Close #132
  • Loading branch information
paodb authored and javier-godoy committed Jun 6, 2024
1 parent 91c0b84 commit 682906b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down

0 comments on commit 682906b

Please sign in to comment.