In the picture below I have blue dots representing 'trails' of ships in the past. I also have 2 indicators of the latest position of the vessel:
1) a small red dot with a blue outline
2) an icon of a ship, using webdings font.
If you look at the "Reunion" ship, you will notice the actual icon is a long way below the small red dot, wherease I would have liked the center of the icon to be over (or under) the red dot. I am not using any YOffsetInPixel in any of the properties of the items.
Is this by design? Is the "anchor point" or "home point" of an icon at the top center rather than in the X/Y center?
I could do a workaround using YOffsetInPixel but I figure that is going to require a different value depending on the size of the icon, which I don't want to get involved with unless there is no other way.
The code I use for the style is:
ShipLayer.Srid = 4326
ShipLayer.ZoomLevelSet.ZoomLevel01.DefaultPointStyle = PointStyles.Capital3 ' this is a red dot with a blue outline
ShipLayer.ZoomLevelSet.ZoomLevel01.DefaultPointStyle.PointType = PointType.Character
ShipLayer.ZoomLevelSet.ZoomLevel01.DefaultPointStyle.CharacterFont = New GeoFont("Webdings", 20)
ShipLayer.ZoomLevelSet.ZoomLevel01.DefaultPointStyle.CharacterIndex = 111
ShipLayer.ZoomLevelSet.ZoomLevel01.DefaultPointStyle.CharacterSolidBrush = New GeoSolidBrush(GeoColor.StandardColors.Red) ' ship symbol colour
ShipLayer.ZoomLevelSet.ZoomLevel01.DefaultPointStyle.SymbolPen = New GeoPen(GeoColor.FromArgb(255, GeoColor.StandardColors.Black), 1) ' symbol outline colour and thickness
ShipLayer.ZoomLevelSet.ZoomLevel01.DefaultPointStyle.RotationAngle = 0
ShipLayer.ZoomLevelSet.ZoomLevel01.DefaultTextStyle = TextStyles.City1("Name") ' column from Vessels table
ShipLayer.ZoomLevelSet.ZoomLevel01.DefaultTextStyle.PointPlacement = PointPlacement.UpperLeft ' make user definable?
ShipLayer.ZoomLevelSet.ZoomLevel01.DefaultTextStyle.OverlappingRule = LabelOverlappingRule.NoOverlapping
ShipLayer.ZoomLevelSet.ZoomLevel01.DefaultTextStyle.BestPlacement = True
ShipLayer.ZoomLevelSet.ZoomLevel01.DefaultAreaStyle = AreaStyles.Country1
ShipLayer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20