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

map.visibleRegion.contains(coor) bug at minimum zoom

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.9.2
    • 5.7.1
    • None
    • Ubuntu

    Description

      See attached example

      I have a QML map showing several circles.

      When I click on a circle with LMB, it calls a fonction which check whether the coordinate of that object is visible in the map using map.visibleRegion.contains(coor).
      If it does, nothing is done.
      If it does not, map center is modified so that object is visible.
      (both cases will print console message for easy debug)

      Circles are located in north India area, memorize that info.

      Now zoom out to minimum zoom so you see the entire earth. (This is a requirement if you just zoom 1 step in, the bug will not occur)
      Objects disappear (QTBUG-56929) but in practice they are only transparent, so if you click where they were, you should still see that the function is called from the console.

      Now the bug is the following.
      If the area where the circles are is not close to a border of the view, map.visibleRegion.contains(coor) will return true as expected.
      But if map is panned so that the area where the circles are is close to a corner of the map. A click on where the transparent circles are ==> the map center is modified, but the center of the circles were in the view, so that should not have happen.

      (Note that in the real code, the object is clicked in a list of object in C++ so functionality makes more sense )

      Attachments

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

        Activity

          People

            paangele Paolo Angelelli
            razamut razamut
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes