Hi all, I'm currently working on ReactiveNavigationDemo application with real-time built grid map. Although I could update the gridMap (variable) inside the program, it doen't show the most upto date map in the plot (mpWindow). However if I zoom in or zoom out by right clicking to screen, it get the upto date map. In other words, if I refresh the window manually it update the map as well. I tried to refresh the plot inside the program, but it didn't work. Any help would be appreciated.
Thanks!
Try calling the ->Refresh()
Try calling the ->Refresh() method of the mpWindow: http://docs.wxwidgets.org/2.8/wx_wxwindow.html#wxwindowrefresh
Cheers.
"Refresh" updates all other
"Refresh" updates all other layers, but not the map layer. I don't know what is the reason for that. However I got it fixed by deleting all the layers in each time step and adding them again to the plot. It is not the best way to solve this problem, however it works nicely. Thanks for replying.