Opened 14 years ago

Last modified 13 years ago

#2243 new bug

Not accurate extent frame in map overview

Reported by: gislab Owned by: nobody
Priority: minor: annoyance Milestone: Version 1.7.0
Component: GUI Version: Trunk
Keywords: overview Cc: dr
Must Fix for Release: No Platform: All
Platform Version: Awaiting user input: no

Description

If map overview is turned on and docked, the red extent frame is usually not accurate, i.e. either top/bottom bounds are missing until you start resizing.

Minor issue of course, but still.

Example: http://gis-lab.info/images/screenshots/20091205-kn6-11kb.jpg

Attachments (1)

wrong_overview.png (236.1 KB ) - added by mayeulk 13 years ago.
wrong overview (using OSM data: monaco.osm)

Download all attachments as: .zip

Change History (7)

comment:1 by gislab, 14 years ago

Priority: critical: causes crash or data corruptionminor: annoyance

comment:2 by lutra, 14 years ago

Platform: WindowsAll

Are you sure that are "missing"? It seems to me that if enlarge width/height of the overview box than the lines do show in the right place.

By the way, other overview issues are: #2181 #2166 #1449

comment:3 by smizuno, 14 years ago

I believe the extent frame is operating correctly. The main intent of the frame is to show what area in the full map data is currently being displayed on the main map when zoomed in.

These are some factors that affect the display position of the rectangle:

  1. Aspect ratio of the Overview vs. main map canvas.
  1. the Overview shows the full extent exactly for all active layers (within its aspect ratio), but the zoom full extent actually puts a 5% additional buffer so the data are not right on the edge of the map. This will cause the rectangle to be outside the overview if both canvases have the same aspect ratio.
  1. The small matter of + or - one pixel due to conversion of floating point values to integer.

A better test is to zoom in until the rectangle is the smallest size it can be, then positioning the rectangle over a feature on the map. That feature will be displayed on the main map.

comment:4 by pcav, 14 years ago

Milestone: Version 1.5.0Version 1.6.0

by mayeulk, 13 years ago

Attachment: wrong_overview.png added

wrong overview (using OSM data: monaco.osm)

comment:5 by mayeulk, 13 years ago

In the example http://trac.osgeo.org/qgis/attachment/ticket/2243/wrong_overview.png, the overview is almost correct if I pan near the North of the areao of interest (Monaca). The more I go in the south, the more it is wrong. Having the pane docked or floating does not change anything.

comment:6 by mayeulk, 13 years ago

Keywords: overview added
Note: See TracTickets for help on using tickets.