I can’t get the URI to return for the RADMAP. My project is called Maptest and I have tried placing the kml file in the root of the project, the root of the web project the client bin, pretty much everywhere.
I have tried referring to it with
eu.kml
..\eu.kml
..\MapTest\eu.kml
\eu.kml
\maptest.kml
And any other combinations I could think of. The map is viewable through localhost and the internet and I am using OpenStreetMap
Here is my code, which returns an Object not set/NullReference exception when trying to read the stream.
Dim streamInfo As StreamResourceInfo = Application.GetResourceStream(New Uri("eu.kml", UriKind.RelativeOrAbsolute))
' loading the boundaries of the European Union
Dim list As List(Of FrameworkElement) = KmlReader.Read(streamInfo.Stream)
Any help would be greatly appreciated
Tom