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

setVisibleRegion in qdeclarativegeomap

XMLWordPrintable

    • 24ecdc6c962ff40096782bffc24b7d6623c4a87e

      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.

        For Gerrit Dashboard: QTBUG-54141
        # Subject Branch Project Status CR V

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes