Merge branch 'master' into locationlistview
authorJussi Laitinen <jupe@l3l7588.ixonos.local>
Tue, 3 Aug 2010 09:02:02 +0000 (12:02 +0300)
committerJussi Laitinen <jupe@l3l7588.ixonos.local>
Tue, 3 Aug 2010 09:02:02 +0000 (12:02 +0300)
Conflicts:
src/map/mapengine.cpp

1  2 
src/map/mapengine.cpp
src/map/mapengine.h

@@@ -319,32 -290,6 +297,17 @@@ bool MapEngine::isCenterTileChanged(Sce
      return (centerTile != temp);
  }
  
 +void MapEngine::locationItemClicked(GeoCoordinate &swBound, GeoCoordinate &neBound)
 +{
 +    qDebug() << __PRETTY_FUNCTION__;
 +
 +    QRect area;
 +    area.setTopRight(SceneCoordinate(neBound).toPointF().toPoint());
 +    area.setBottomLeft(SceneCoordinate(swBound).toPointF().toPoint());
 +
 +    centerAndZoomTo(area, false);
 +}
 +
- qreal MapEngine::sceneResolution()
- {
-     qDebug() << __PRETTY_FUNCTION__;
-     const int SHIFT = 200;
-     const int KM_TO_M = 1000;
-     qreal scale = (1 << (OSM_MAX_ZOOM_LEVEL - m_zoomLevel));
-     GeoCoordinate centerCoordinate = centerGeoCoordinate();
-     SceneCoordinate shiftedSceneCoordinate(m_sceneCoordinate.x() + SHIFT * scale,
-                                            m_sceneCoordinate.y());
-     GeoCoordinate shiftedCoordinate(shiftedSceneCoordinate);
-     qreal dist = greatCircleDistance(centerCoordinate, shiftedCoordinate) * KM_TO_M;
-     return (dist / SHIFT);
- }
  void MapEngine::mapImageReceived(int zoomLevel, int x, int y, const QPixmap &image)
  {
      qDebug() << __PRETTY_FUNCTION__;
Simple merge