Hi. I have just started learning about the UltraGeographicMap WinForms Control and want to add points to be displayed without having to use a shape file. Is this possible at all?
Thanks, Tony.
Hi Tony,
Yes, this is possible. For further reference and code snippet look at the following documentation page at https://ko.infragistics.com/help/winforms/geographicmap-binding-geographic-data-models
Let me know if you have additional questions.
Hi Ivaylo. That works perfectly thank you, but now the next question is how to use the same series of point to display a polyline instead of just a series of locations?
I would have thought that changing the series from a GeographicSymbolSeries to a GeographicPolylineSeries would have worked, but it does not. The documentation on the ShapeMemberPath property is pretty slim.
Dim series As New GeographicPolylineSeries() series.ShapeMemberPath = "Point" series.Outline = Brushes.Red
Dim geoLocations As New List(Of Infragistics.Win.DataVisualization.Point)
geoLocations.Add(New Point() With {.X = 0.12, .Y = 51.5}) geoLocations.Add(New Point() With {.X = 37.51, .Y = 55.75}) geoLocations.Add(New Point() With {.X = 151.2, .Y = -33.83}) geoLocations.Add(New Point() With {.X = 139.6917, .Y = 35.6895}) geoLocations.Add(New Point() With {.X = 77.225, .Y = 28.6353}) geoLocations.Add(New Point() With {.X = -99.1276, .Y = 19.427}) geoLocations.Add(New Point() With {.X = -73.987, .Y = 40.7561}) geoLocations.Add(New Point() With {.X = -118.2434, .Y = 34.0522}) geoLocations.Add(New Point() With {.X = -46.6388, .Y = -23.5489})
series.DataSource = geoLocations
geoMap.Series.Add(series)