mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-19 03:57:26 -05:00
#2681 Map tab as a JavaFX component Replaces the Swing JXMapViewer map with a pure JavaFX canvas tile map in gui/map: OpenStreetMap tiles with a memory and disk cache, track, Radio Reference site and user location layers, the site hover card and context menu, and the map controls. Removes the bundled SwingX map viewer copy and moves GeoPosition to the map package. Co-authored-by: denny <dennis.sheirer@gmail.com>
32 lines
674 B
Java
32 lines
674 B
Java
package io.github.dsheirer.map;
|
|
|
|
|
|
/**
|
|
* 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;
|
|
}
|
|
}
|