I have a socket where I receive coordinates.
These coordinates needs to be show on a WebMapViewer.
In the socket DataAvailable event, I have the following code:
Dim loc As New WebMapLocation
loc.Latitude = Val( data( 1 ) )
loc.Longitude = Val( data( 2 ) )
loc.icon = pinRoundRed
loc.Visible = True
MapView.AddLocation(loc)
MapView.GoToLocation( loc )
I get the NilObjectException.
When I use the same pinRoundRed Icon in the MapView click event, it works.