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
* Getter for {@link Shape} of this {@link ExtrudeMarker}.
93
-
* <p>The shape is placed on the xz-plane of the map, so the y-coordinates of the {@link Shape}'s points are the z-coordinates in the map.</p>
98
+
* <p>The shape is placed on the xz-plane of the map, so the y-coordinates of the {@link Shape}'s points are the
99
+
* z-coordinates in the map.</p>
94
100
* @return the {@link Shape}
95
101
*/
96
102
publicShapegetShape() {
@@ -117,7 +123,8 @@ public float getShapeMaxY() {
117
123
118
124
/**
119
125
* Sets the {@link Shape} of this {@link ExtrudeMarker}.
120
-
* <p>The shape is placed on the xz-plane of the map, so the y-coordinates of the {@link Shape}'s points will be the z-coordinates in the map.</p>
126
+
* <p>The shape is placed on the xz-plane of the map, so the y-coordinates of the {@link Shape}'s points will be
127
+
* the z-coordinates in the map.</p>
121
128
* <i>(The shape will be extruded from minY to maxY on the map)</i>
122
129
* @param shape the new {@link Shape}
123
130
* @param minY the new min-height (y-coordinate) of the shape on the map
@@ -140,15 +147,17 @@ public void centerPosition() {
140
147
}
141
148
142
149
/**
143
-
* If the depth-test is disabled, you can see the marker fully through all objects on the map. If it is enabled, you'll only see the marker when it is not behind anything.
150
+
* If the depth-test is disabled, you can see the marker fully through all objects on the map. If it is enabled,
151
+
* you'll only see the marker when it is not behind anything.
144
152
* @return <code>true</code> if the depthTest is enabled
145
153
*/
146
154
publicbooleanisDepthTestEnabled() {
147
155
returndepthTest;
148
156
}
149
157
150
158
/**
151
-
* If the depth-test is disabled, you can see the marker fully through all objects on the map. If it is enabled, you'll only see the marker when it is not behind anything.
159
+
* If the depth-test is disabled, you can see the marker fully through all objects on the map. If it is enabled,
160
+
* you'll only see the marker when it is not behind anything.
152
161
* @param enabled if the depth-test should be enabled for this {@link ExtrudeMarker}
Copy file name to clipboardExpand all lines: src/main/java/de/bluecolored/bluemap/api/markers/HtmlMarker.java
+75-1Lines changed: 75 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -120,7 +120,8 @@ public String getHtml() {
120
120
*
121
121
* <p>
122
122
* <b>Important:</b><br>
123
-
* Make sure you escape all html-tags from possible user inputs to prevent possible <a href="https://en.wikipedia.org/wiki/Cross-site_scripting">XSS-Attacks</a> on the web-client!
123
+
* Make sure you escape all html-tags from possible user inputs to prevent possible
124
+
* <a href="https://en.wikipedia.org/wiki/Cross-site_scripting">XSS-Attacks</a> on the web-client!
124
125
* </p>
125
126
*
126
127
* @param html the html that will be inserted as the marker.
* Sets the position (in pixels) where the html-element is anchored to the map.
168
+
* @param anchor the anchor-position in pixels
169
+
* @return this builder for chaining
170
+
*/
171
+
publicBuilderanchor(Vector2ianchor) {
172
+
this.anchor = anchor;
173
+
returnthis;
174
+
}
175
+
176
+
/**
177
+
* Sets the position (in pixels) where the html-element is anchored to the map.
178
+
* @param x the anchor-x-position in pixels
179
+
* @param y the anchor-y-position in pixels
180
+
* @return this builder for chaining
181
+
*/
182
+
publicBuilderanchor(intx, inty) {
183
+
this.anchor = newVector2i(x, y);
184
+
returnthis;
185
+
}
186
+
187
+
/**
188
+
* Sets the html for the {@link HtmlMarker}.
189
+
*
190
+
* <p>
191
+
* <b>Important:</b><br>
192
+
* Make sure you escape all html-tags from possible user inputs to prevent possible <a href="https://en.wikipedia.org/wiki/Cross-site_scripting">XSS-Attacks</a> on the web-client!
193
+
* </p>
194
+
*
195
+
* @param html the html that will be inserted as the marker.
196
+
* @return this builder for chaining
197
+
*/
198
+
publicBuilderhtml(Stringhtml) {
199
+
this.html = html;
200
+
returnthis;
201
+
}
202
+
203
+
/**
204
+
* Creates a new {@link HtmlMarker} with the current builder-settings.<br>
205
+
* The minimum required settings to build this marker are:
0 commit comments