diff --git a/ground/src/plugins/gpsdisplay/gpsdisplay.pro b/ground/src/plugins/gpsdisplay/gpsdisplay.pro
index b6008f4bf..f532fe1f7 100644
--- a/ground/src/plugins/gpsdisplay/gpsdisplay.pro
+++ b/ground/src/plugins/gpsdisplay/gpsdisplay.pro
@@ -20,3 +20,4 @@ SOURCES += gpsdisplaygadgetoptionspage.cpp
OTHER_FILES += GpsDisplayGadget.pluginspec
FORMS += gpsdisplaygadgetoptionspage.ui \
gpsdisplaywidget.ui
+RESOURCES += widgetresources.qrc
diff --git a/ground/src/plugins/gpsdisplay/gpsdisplaywidget.cpp b/ground/src/plugins/gpsdisplay/gpsdisplaywidget.cpp
index b5a5c88ba..788e693b2 100644
--- a/ground/src/plugins/gpsdisplay/gpsdisplaywidget.cpp
+++ b/ground/src/plugins/gpsdisplay/gpsdisplaywidget.cpp
@@ -45,6 +45,22 @@ GpsDisplayWidget::GpsDisplayWidget(QWidget *parent) : QWidget(parent)
widget = new Ui_GpsDisplayWidget();
widget->setupUi(this);
+ QGraphicsScene *scene = new QGraphicsScene(this);
+ QSvgRenderer *renderer = new QSvgRenderer();
+ QGraphicsSvgItem *world = new QGraphicsSvgItem();
+ renderer->load(QString(":/gpsgadget/images/gpsEarth.svg"));
+ world->setSharedRenderer(renderer);
+ world->setElementId("map");
+ scene->addItem(world);
+ scene->setSceneRect(world->boundingRect());
+ widget->gpsWorld->setScene(scene);
+ // Somehow fitInView does not work there at all? Makes
+ // the 'world' element tiny tiny tiny. anyone knows why??
+ //widget->gpsWorld->fitInView(world,Qt::KeepAspectRatio);
+ qreal factor = widget->gpsWorld->size().height()/world->boundingRect().height();
+ widget->gpsWorld->setSizePolicy(QSizePolicy::Fixed,QSizePolicy::Fixed);
+ world->setScale(factor);
+
}
GpsDisplayWidget::~GpsDisplayWidget()
diff --git a/ground/src/plugins/gpsdisplay/gpsdisplaywidget.ui b/ground/src/plugins/gpsdisplay/gpsdisplaywidget.ui
index 70b8ac0d8..41f30cb02 100644
--- a/ground/src/plugins/gpsdisplay/gpsdisplaywidget.ui
+++ b/ground/src/plugins/gpsdisplay/gpsdisplaywidget.ui
@@ -120,7 +120,7 @@
Connect
-
+
300
@@ -129,6 +129,41 @@
171
+
+
+ 0
+ 0
+
+
+
+
+ 171
+ 171
+
+
+
+
+ 171
+ 171
+
+
+
+ false
+
+
+ Qt::ScrollBarAlwaysOff
+
+
+ Qt::ScrollBarAlwaysOff
+
+
+
+ 0.000000000000000
+ 0.000000000000000
+ 169.000000000000000
+ 169.000000000000000
+
+
diff --git a/ground/src/plugins/gpsdisplay/images/gpsEarth.svg b/ground/src/plugins/gpsdisplay/images/gpsEarth.svg
new file mode 100644
index 000000000..1a7a60cef
--- /dev/null
+++ b/ground/src/plugins/gpsdisplay/images/gpsEarth.svg
@@ -0,0 +1,344 @@
+
+
+
+