Class GeometryStyles.PointStyleBuilder
java.lang.Object
io.jmix.mapsui.component.layer.style.GeometryStyles.PointStyleBuilder
- Enclosing class:
- GeometryStyles
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionwithDivIcon
(String html) A point will be represented on a map by a fully custom lightweight icon that uses the given<div>
element instead of an image.withFontIcon
(Icons.Icon icon) A point will be represented on a map by a marker with an inner font-icon from icon set.withFontIcon
(String icon) A point will be represented on a map by a marker with an inner font-icon.withImageIcon
(Icons.Icon icon) A point will be represented on a map by a custom marker icon using the given icon from icon set.withImageIcon
(String icon) A point will be represented on a map by a custom marker icon using the given icon.withImageIcon
(URL iconUrl) A point will be represented on a map by a custom marker icon using the image located in the given URL.
-
Constructor Details
-
PointStyleBuilder
public PointStyleBuilder()
-
-
Method Details
-
withFontIcon
A point will be represented on a map by a marker with an inner font-icon from icon set.An icon passed as a method parameter supposed to be a font-icon, otherwise all settings will be ignored and the default marker will be used instead.
- Parameters:
icon
- font-icon to be used inside a marker. For example,CubaIcon.SHOPPING_BAG
.
-
withFontIcon
A point will be represented on a map by a marker with an inner font-icon.An icon passed as a method parameter supposed to be a font-icon, otherwise all settings will be ignored and the default marker will be used instead.
- Parameters:
icon
- source of the icon. For example, "font-icon:SHOPPING_BAG".
-
withImageIcon
A point will be represented on a map by a custom marker icon using the given icon from icon set.This method doesn't support font-icons. To work with font-icons, use
withFontIcon(Icons.Icon)
instead.- Parameters:
icon
- to be used as a marker icon.
-
withImageIcon
A point will be represented on a map by a custom marker icon using the given icon.- Parameters:
icon
- source of the icon. For example, "theme:awesomeFolder/superIcon.png".
-
withImageIcon
A point will be represented on a map by a custom marker icon using the image located in the given URL.- Parameters:
iconUrl
- url of the image
-
withDivIcon
A point will be represented on a map by a fully custom lightweight icon that uses the given<div>
element instead of an image.
-