13

I have this problem:

I have a list of points List<PointLatLng> and an overlay where a trajectory of the points is shown. I also use TabPages and inside one page there is the gMapcontrol. Unfortunately the trajectory is updated only when the page is not shown, I mean, when the focus is on another page.

Once I open the page with the Map the trajectory stops to update. How can I fix this?

I tried with:

BeginInvoke((Action)(() => gMapControl.Refresh()));

Inside the DataReceived event, but it only works as I said before.

Okenite
  • 189
  • 1
  • 10

1 Answers1

1

I resolved this problem with:

gMapControl1.Zoom = -5;
gMapControl1.Zoom = 5;
Joe Mayo
  • 7,501
  • 7
  • 41
  • 60