GPS layer Mode for Navigation Java 10.2.4

1088
2
Jump to solution
10-08-2016 02:25 PM
thomasbales
Occasional Contributor

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

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
thomasbales
Occasional Contributor

Thanks, worked like a charm. I am directly connected to the feed on my GPS hardware.

View solution in original post

0 Kudos
2 Replies
nita14
by
Occasional Contributor III

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
 
0 Kudos
thomasbales
Occasional Contributor

Thanks, worked like a charm. I am directly connected to the feed on my GPS hardware.

0 Kudos