ImageOriginOffset: IGxPointF;
The ImageOriginOffset property determines parameters of the icon factor anchor point.
Executing the example requires a form with a button with the Button1 identifier, the MapBox and UiMap components with loaded map. The map icon factors must be set up.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
M: IMap;
Point: IGxPointF;
Layer: IMapLayer;
Shape: IMapTopobaseShape;
Begin
M := UiMap1.Map;
Layer := M.Layers.FindByName("Regions");
Shape := Layer.Shapes.Item(0);
Point := Shape.ImageOriginOffset;
Point.Offset(0.1, 0.3);
Shape.ImageOriginOffset:= Point;
End Sub Button1OnClick;
After executing the example on clicking the button the icon factor of the first area is offset by "0.1" along the X axis and by "0.3" along the Y axis.
See also: