Posted 28 September 2023, 5:50 am EST
- Updated 28 September 2023, 6:06 am EST
Thank you it works fine,
how i can add a label to the marker? I tried this way but it will not show the label…
Dim mark = New C1.Win.Map.VectorPlacemark()
_layer.Items.Add(mark)
'GeoPoint constructor accepts (X, Y) as paramaters, which translates to (longitude, latitude)
mark.Geometry = New GeoPoint(lon, lat)
mark.Marker.Size = New SizeF(20, 27.32F)
mark.Marker.Shape = MarkerShape.Custom
mark.Marker.CustomShape = New MarkShape()
mark.Style.Stroke.Color = Color.DarkGray
mark.Style.Stroke.Width = 1
mark.Style.BackColor = Color.Red
mark.Marker.LabelPosition = LabelPosition.Right
mark.LabelStyle.BackColor = System.Drawing.Color.White
mark.LabelWidth = 150
mark.Marker.Caption = “Label next the Marker”
Is there also a way to set the init position/zoom, so when i start the app i point quick to a position?
Thank you…