anchor property
The anchor point for the marker image which specifies the position offset relative to the marker's coordinates. Gets current anchor point for the marker image.
Implementation
Anchor2D get anchor;
The anchor point for the marker image which specifies the position offset relative to the marker's coordinates. Sets anchor point of the marker image which specifies the position offset relative to the marker's coordinates.
For example, (0, 0) places the top-left corner of the image at the marker's coordinates. (1, 1) would place the bottom-right corner of the image at the marker's coordinates. (0.5, 0.5) which is the default value would center the image at the marker's coordinates. Values outside the 0..1 range are also allowed, for example (0.5, 2) would display the image centered horizontally with its bottom edge above the marker's coordinates at the distance in pixels that is equal to the height of the image.
Implementation
set anchor(Anchor2D value);