mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-18 03:27:26 -05:00
#1849 Map enhancements. Adds track list, zoom to selection, history trail size and other features. (#1920)
Co-authored-by: Dennis Sheirer <dsheirer@github.com>
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
package io.github.dsheirer.map;
|
||||
|
||||
import org.jdesktop.swingx.mapviewer.GeoPosition;
|
||||
|
||||
/**
|
||||
* Timestamped geo position
|
||||
*/
|
||||
public class TimestampedGeoPosition extends GeoPosition
|
||||
{
|
||||
private long mTimestamp;
|
||||
|
||||
/**
|
||||
* Constructs an instance
|
||||
* @param latitude for the position
|
||||
* @param longitude for the position
|
||||
* @param timestamp in milliseconds
|
||||
*/
|
||||
public TimestampedGeoPosition(GeoPosition position, long timestamp)
|
||||
{
|
||||
super(position.getLatitude(), position.getLongitude());
|
||||
mTimestamp = timestamp;
|
||||
}
|
||||
|
||||
/**
|
||||
* Timestamp for the geo position
|
||||
* @return timestamp in milliseconds.
|
||||
*/
|
||||
public long getTimestamp()
|
||||
{
|
||||
return mTimestamp;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user