After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 770490 - Add extra clone on the left.
Add extra clone on the left.
Status: RESOLVED FIXED
Product: libchamplain
Classification: Core
Component: view
unspecified
Other Linux
: Normal normal
: ---
Assigned To: libchamplain-maint
libchamplain-maint
Depends on:
Blocks:
 
 
Reported: 2016-08-27 18:33 UTC by Marius Stanciu
Modified: 2016-09-03 10:20 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Markers without left clone not rendering properly. (59.74 KB, image/png)
2016-08-27 18:33 UTC, Marius Stanciu
  Details
Attachment to Bug 770490 - Add extra clone on the left. (3.49 KB, patch)
2016-08-27 18:37 UTC, Marius Stanciu
none Details | Review
Add extra clone on the left. (8.03 KB, patch)
2016-09-02 12:23 UTC, Marius Stanciu
none Details | Review

Description Marius Stanciu 2016-08-27 18:33:45 UTC
Created attachment 334277 [details]
Markers without left clone not rendering properly.

I've noticed this in Maps: Go_to animation makes the viewport hover over the original layer only (which is on the left) so this exposes some empty space on the left.

An additional clone on the left side makes the go_to animation seamless and fills the empty space.

This also solves a small issue with markers that span over the right border of the map not rendering. (I've attached a screenshot to illustrate the issue).
Comment 1 Marius Stanciu 2016-08-27 18:37:06 UTC
Created attachment 334278 [details] [review]
Attachment to Bug 770490 - Add extra clone on the left.

Add extra clone on the left.
Comment 2 Jiri Techet 2016-08-30 19:12:32 UTC
Thanks Marius, I'll have a look at it tomorrow.
Comment 3 Jiri Techet 2016-08-31 13:13:19 UTC
Looks good. There's just one minor problem - when I set the New York marker to the position like in your picture so it's only partially visible on the left, I cannot drag it. I think the user layer swapping needs some update too to take into account the last actor belongs to the left.
Comment 4 Marius Stanciu 2016-09-02 12:23:32 UTC
Created attachment 334636 [details] [review]
Add extra clone on the left.

This makes the go_to animation smoother (no more empty space on the
left) and also fixes a rendering issue with markers crossing the
right border of the map.
Comment 5 Marius Stanciu 2016-09-02 12:27:38 UTC
Fixed! I missed the swapping indeed, thanks for looking into it.
Comment 6 Jiri Techet 2016-09-03 10:16:12 UTC
Thanks, looks good now. Merged. Also having the left clone at the beginning of the clone list is cleaner than having it at the end.
Comment 7 Jiri Techet 2016-09-03 10:20:01 UTC
By the way, I just remembered - have you asked the clutter guys about the clone "bug" and the cairo guys about the strange "rounding" issue with path layer and high zoom levels? Would be interesting to know more.