mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-16 10:37:26 -05:00
#2641 Enhanced radio reference integration. With a premium subscription and when you set your location on the map, the Spectral display includes radio reference layer that presents popup card in the spectrum that shows candidate systems or frequencies ordered by distance from your location. Background thread builds an offline cache of data to support this. Map plots this cache as tower pins on the map and you can hover and active site frequencies from the map. (#2642)
Updates sdrtrunk to use latest radio reference api jar. Co-authored-by: denny <dennis.sheirer@gmail.com>
This commit is contained in:
@@ -284,6 +284,24 @@ public class SpectralDisplay extends StackPane
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Indicates if a layer draws its own callout in place of the cursor readout for the mouse position.
|
||||
* @param cursor mouse position
|
||||
* @param area of the section under the mouse
|
||||
*/
|
||||
public boolean isCursorReadoutReplaced(DisplayCursor cursor, RenderArea area)
|
||||
{
|
||||
for(SpectralDisplayLayer layer: mLayers)
|
||||
{
|
||||
if(layer.replacesCursorReadout(cursor, area))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Layers in drawing order.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user