Merge branch 'master' into locationlistview
[situare] / src / map / mapengine.cpp
index 0edebee..a56f158 100644 (file)
@@ -623,3 +623,11 @@ void MapEngine::zoomOut()
         zoomed();
     }
 }
+
+void MapEngine::locationItemClicked(GeoCoordinate &swBound, GeoCoordinate &neBound)
+{
+    qDebug() << __PRETTY_FUNCTION__;
+
+    centerAndZoomTo(QRect(SceneCoordinate(swBound).toPointF().toPoint(),
+                          SceneCoordinate(neBound).toPointF().toPoint()));
+}