Does anyone have a quick example on how to turn the graphicLayer (gpsLayer) to a real gpsLayer in the
GPSComApp example code? I would like to keep the sample code as intact as possible but I would like to enable navigation or autopan modes on the graphic in this application.
Tom
Solved! Go to Solution.
Thanks, worked like a charm. I am directly connected to the feed on my GPS hardware.
Tom,
Look at GPS Layer modes example. Just initialize GPSLayer with SerialPortGPSWatcher. It should work.
GPSEventListener gpsListener = new MyGeoPositionListener(jMap, graphicsLayer);
gpsWatcher = new SerialPortGPSWatcher(gpsListener);
gpsLayer = new GPSLayer(gpsWatcher);
Regards,
Adam
Thanks, worked like a charm. I am directly connected to the feed on my GPS hardware.