I am wanting to load an image and polygon onto the Map control. I am using a KML file. I am able to load the polygon but NOT able to display the image in the map control.
i.e. if I open the KML file in google earth the image and polygon are displayed, I want to 'replicate' this in the Map control.
Below is my sample code and attached are the KML file and image files.
Dim osmProvider As New OpenStreetMapProvider()
Me.RadMap1.MapElement.Providers.Add(osmProvider)
Me.RadMap1.Layers.Clear()
Me.RadMap1.Layers.Add(New MapLayer("Pens"))
Using seatsStream As New FileStream("D:\MyTelerikMap\Farm.kml", FileMode.Open, FileAccess.Read)
Dim elements As List(Of MapVisualElement) = KmlReader.Read(seatsStream)
For Each item As MapVisualElement In elements
item.BorderWidth = 1
item.BorderColor = Color.Black
item.BackColor = Color.Red
Next
Me.RadMap1.Layers("Pens").AddRange(elements)
End Using
Dim MyCenter As PointG
MyCenter.Latitude = -16.545276685809551
MyCenter.Longitude = 28.87446081916244
RadMap1.MapElement.BringIntoView(MyCenter, 16)
Thank you in advanced for your assistance.