mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-01 21:54:55 -04:00
Map updates:
Add left double click to add marker to 3D map. Add support for alititudeReference for polygon and polyline. Add support for plugins to set color of polygons.
This commit is contained in:
@@ -113,6 +113,9 @@ void PolygonMapItem::update(SWGSDRangel::SWGMapItem *mapItem)
|
||||
{
|
||||
MapItem::update(mapItem);
|
||||
m_extrudedHeight = mapItem->getExtrudedHeight();
|
||||
m_colorValid = mapItem->getColorValid();
|
||||
m_color = mapItem->getColor();
|
||||
m_altitudeReference = mapItem->getAltitudeReference();
|
||||
|
||||
qDeleteAll(m_points);
|
||||
m_points.clear();
|
||||
@@ -145,6 +148,9 @@ void PolygonMapItem::update(SWGSDRangel::SWGMapItem *mapItem)
|
||||
void PolylineMapItem::update(SWGSDRangel::SWGMapItem *mapItem)
|
||||
{
|
||||
MapItem::update(mapItem);
|
||||
m_colorValid = mapItem->getColorValid();
|
||||
m_color = mapItem->getColor();
|
||||
m_altitudeReference = mapItem->getAltitudeReference();
|
||||
|
||||
qDeleteAll(m_points);
|
||||
m_points.clear();
|
||||
|
||||
Reference in New Issue
Block a user