Details
-
Suggestion
-
Resolution: Done
-
P2: Important
-
5.10.0 Alpha
-
None
Description
The MapPolyline documentation (http://doc.qt.io/qt-5/qml-qtlocation-mappolyline.html) states that lines with many points are inefficient. The number of points can be easily and dynamically adapted:
1.) Calculate the minimum visible distance in pixels for the current longitude/latitude bounding box and zoom level.
2.) If the distance between two polyline points is smaller than the visible distance then merge the points.
3.) Ommit points which lie outside the bounding box (with some additional margin).
Point 3 can be tricky but the other two work very well (I have used this with non-Qt projects).
Attachments
For Gerrit Dashboard: QTBUG-46652 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
123656,3 | Simplify polyline before rendering | 5.7 | qt/qtlocation | Status: ABANDONED | +2 | 0 |
285381,17 | Add geometry simplification to MapPolyline/MapPolylineObjectQSG | 5.15 | qt/qtlocation | Status: MERGED | +2 | 0 |