Class AbstractCustomPointIcon
java.lang.Object
io.jmix.mapsui.component.layer.style.GeometryStyle
io.jmix.mapsui.component.layer.style.PointStyle
io.jmix.mapsui.component.layer.style.AbstractCustomPointIcon
- Direct Known Subclasses:
DivPointIcon
,ImagePointIcon
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble[]
double[]
double[]
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).
-
Constructor Details
-
AbstractCustomPointIcon
public AbstractCustomPointIcon()
-
-
Method Details
-
getIconAnchor
public double[] getIconAnchor() -
setIconAnchor
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.- Parameters:
x
-y
-- Returns:
- the instance on which this method was called. Useful for a fluent API.
-
getIconSize
public double[] getIconSize() -
setIconSize
Sets the size of the icon in pixels.- Parameters:
x
-y
-- Returns:
- the instance on which this method was called. Useful for a fluent API.
-
getPopupAnchor
public double[] getPopupAnchor() -
setPopupAnchor
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].- Parameters:
x
-y
-- Returns:
- the instance on which this method was called. Useful for a fluent API.
-