I'm using the 100.8 SDK with Qt 5.14.2 and trying to connect to a variety of GPS units with the serialnmea plugin. The issue I'm having is that the MapView is loading before the Settings can be read, so the user-specified serial port and baud rate aren't set when the PositionSource PluginParameter(s) are begin set up. I would also like to be able to reset the position source when users change the port/baud rate settings so they don't have to restart the program to try out new port/baud settings.
Can someone share some code for dynamically instantiating a MapView and associated LocationDisplay/DefaultLocationDataSource/PositionSource components for connecting GPS location to the map view? I've been able to instantiate a PositionSource with port/baud from Settings, but by the time that happens, my MapView is already instantiated and I can't figure out how to tell the MapView about the newly instantiated PositionSource. I feel like I'm missing something simple, but trial and error isn't getting me anywhere.