Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-54141

setVisibleRegion in qdeclarativegeomap

    XMLWordPrintable

Details

    • 24ecdc6c962ff40096782bffc24b7d6623c4a87e

    Description

      In function setVisibleRegion(), the input parameter shape is tested against internal m_region, if they are the same the internal fitViewportToGeoShape() function is not evaluated because the map is apparently already at that location:

      if (shape == m_region)
          return;
      

      Internal m_region is however not updated when the center or zoom level of the map changes (using setCenter() and setZoomlevel()). So a second call to setVisibleRegion() with the same shape as input always results in not evaluating fitViewportToGeoShape() even if the map center or zoom level is changed.

      Attachments

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

        Activity

          People

            paangele Paolo Angelelli
            qdqp Mark Smids
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes