Opened 11 years ago
Closed 7 years ago
#10229 closed defect (fixed)
Rendering will not update if moved from right-hand traffic area to left-hand and vice versa
Reported by: | imagic | Owned by: | team |
---|---|---|---|
Priority: | minor | Milestone: | 18.05 |
Component: | Core mappaint | Version: | latest |
Keywords: | cache | Cc: | bastiK |
Description
If you use a style with different rendering for left-hand and right-hand traffic and you create (and view) some way/node in an area with left-hand traffic and then move it to an area with right-hand traffic (or vice versa) the rendering will not be updated. Seems to be a caching issue.
Example: Try this simple style.
way { width: 10; color: eval(is_right_hand_traffic()?red:blue); }
Now create a way over the UK. It will be rendered blue, which is correct. Move this way (without changing the zoom level) to France and it will still be rendered blue, which is incorrect. If you change the zoom level it might(!) be rendered correctly.
Attachments (0)
Change History (5)
comment:1 by , 11 years ago
Cc: | added |
---|
comment:2 by , 10 years ago
Component: | External mappaint style → Core mappaint |
---|
comment:3 by , 7 years ago
comment:4 by , 7 years ago
Keywords: | cache added |
---|---|
Milestone: | → 18.05 |
Way.clearCachedStyle()
is called when the way is updated (tags changed, node added/removed), but not when its nodes are moved.