We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ae9dc8 commit fd95cb0Copy full SHA for fd95cb0
src/main/java/com/flowingcode/vaadin/addons/googlemaps/GoogleMap.java
@@ -820,6 +820,14 @@ public void removeCustomControl(CustomControl customControl) {
820
this.setCustomControls(this.customControls.stream().toArray(CustomControl[]::new));
821
}
822
823
+ /**
824
+ * Removes all custom controls added to the map.
825
+ */
826
+ public void removeCustomControls() {
827
+ this.customControls.clear();
828
+ this.getElement().executeJs("this._removeCustomControls()");
829
+ }
830
+
831
/**
832
* Adds a FullScreenEvent listener. The listener is called to notify whether the map is in full
833
* screen mode.
0 commit comments