Skip to content

Commit

Permalink
feat: remove all custom controls
Browse files Browse the repository at this point in the history
  • Loading branch information
paodb committed Sep 23, 2024
1 parent 03998ed commit 27bfd82
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -820,6 +820,14 @@ public void removeCustomControl(CustomControl customControl) {
this.setCustomControls(this.customControls.stream().toArray(CustomControl[]::new));
}

/**
* Removes all custom controls added to the map.
*/
public void removeCustomControls() {
this.customControls.clear();
this.getElement().executeJs("this._removeCustomControls()");
}

/**
* Adds a FullScreenEvent listener. The listener is called to notify whether the map is in full
* screen mode.
Expand Down

0 comments on commit 27bfd82

Please sign in to comment.