Uploaded image for project: 'Qt Mobility'
  1. Qt Mobility
  2. QTMOBILITY-2075

QGeoMapObject is forced to mercator on addMapObject

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Not Evaluated Not Evaluated
    • None
    • 1.2.0
    • Location
    • None
    • QtSDK 1.2 in Windows 7 64-bit

      When using a custom Maps API plugin with it's own coordinate system, the QGraphicsGeoMap::addMapObject places the object into a strange position.

      The plugin contains a QGeoTiledMapData subclass, which is used by QGeoTiledMappingManagerEngine. The following virtual methods is implemented on the subclass.

      coordinateToWorldReferencePosition(const QGeoCoordinate& coord)
      worldReferencePositionToCoordinate(const QPoint& pixel)

      These methods provide the conversion into a certain coordinate system.

      When the map object is added via QGraphicsGeoMap::addMapObject(), it seems that the object's position is somehow forced to mercator.

      When using Qt Mobility version 1.1.3, the same code works perfectly and this does not happen.

      When debugging the situation in version 1.2.0, the parameter QPoint& pixel in the method worldReferencePositionToCoordinate() is different than in 1.1.3.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Unassigned Unassigned
            jacob Jaakko Mutikainen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes