Class ImagePointIcon
java.lang.Object
io.jmix.mapsui.component.layer.style.GeometryStyle
io.jmix.mapsui.component.layer.style.PointStyle
io.jmix.mapsui.component.layer.style.AbstractCustomPointIcon
io.jmix.mapsui.component.layer.style.ImagePointIcon
Custom marker's icon image.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.vaadin.server.Resource
setIconAnchor
(double x, double y) Sets the coordinates of the "tip" of the icon in pixels (relative to its top left corner).setIconSize
(double x, double y) Sets the size of the icon in pixels.setPopupAnchor
(double x, double y) Sets the coordinates of the point from which popups will open (relative to the icon anchor).Methods inherited from class io.jmix.mapsui.component.layer.style.AbstractCustomPointIcon
getIconAnchor, getIconSize, getPopupAnchor
-
Constructor Details
-
ImagePointIcon
protected ImagePointIcon(com.vaadin.server.Resource iconResource)
-
-
Method Details
-
getIconResource
@Nullable public com.vaadin.server.Resource getIconResource() -
setIconAnchor
Description copied from class:AbstractCustomPointIcon
Sets the coordinates of the "tip" of the icon in pixels (relative to its top left corner). The icon will be aligned so that this point matches the geographical coordinates of a layer's point. By default: centered if size is specified and equals the top left corner when size is not specified.- Overrides:
setIconAnchor
in classAbstractCustomPointIcon
- Returns:
- the instance on which this method was called. Useful for a fluent API.
-
setIconSize
Description copied from class:AbstractCustomPointIcon
Sets the size of the icon in pixels.- Overrides:
setIconSize
in classAbstractCustomPointIcon
- Returns:
- the instance on which this method was called. Useful for a fluent API.
-
setPopupAnchor
Description copied from class:AbstractCustomPointIcon
Sets the coordinates of the point from which popups will open (relative to the icon anchor). By default: equals the icon anchor, so relative coordinates = [0, 0].- Overrides:
setPopupAnchor
in classAbstractCustomPointIcon
- Returns:
- the instance on which this method was called. Useful for a fluent API.
-