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.
I resolved this problem with:
gMapControl1.Zoom = -5;
gMapControl1.Zoom = 5;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With