You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 380c6bf
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: vaadin-map-flow-parent/vaadin-map-flow/src/main/java/com/vaadin/flow/component/map/configuration/Feature.java
+22Lines changed: 22 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -27,6 +27,7 @@ public abstract class Feature extends AbstractConfigurationObject {
27
27
28
28
privateSimpleGeometrygeometry;
29
29
privateStylestyle;
30
+
privateStringlabel;
30
31
privatebooleandraggable;
31
32
32
33
@Override
@@ -83,6 +84,27 @@ public void setStyle(Style style) {
83
84
addChild(style);
84
85
}
85
86
87
+
/**
88
+
* The label that should be displayed next to the feature.
89
+
*
90
+
* @return the label string
91
+
*/
92
+
publicStringgetLabel() {
93
+
returnlabel;
94
+
}
95
+
96
+
/**
97
+
* Sets the label that should be displayed next to the feature. Set to
98
+
* {@code null} to remove the label.
99
+
*
100
+
* @param label
101
+
* the new label string, or {@code null} to remove the label
102
+
*/
103
+
publicvoidsetLabel(Stringlabel) {
104
+
this.label = label;
105
+
markAsDirty();
106
+
}
107
+
86
108
/**
87
109
* Whether the feature can be dragged on the map using pointing devices or
Copy file name to clipboardExpand all lines: vaadin-map-flow-parent/vaadin-map-flow/src/main/resources/META-INF/resources/frontend/vaadin-map/synchronization/index.js
Copy file name to clipboardExpand all lines: vaadin-map-flow-parent/vaadin-map-testbench/src/main/java/com/vaadin/flow/component/map/testbench/MapElement.java
0 commit comments