Modify

Opened 5 years ago

Closed 11 months 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 Changed 5 years ago by Don-vip

Cc: bastiK added

comment:2 Changed 4 years ago by Klumbumbus

Component: External mappaint styleCore mappaint

comment:3 Changed 11 months ago by Don-vip

Way.clearCachedStyle() is called when the way is updated (tags changed, node added/removed), but not when its nodes are moved.

comment:4 Changed 11 months ago by Don-vip

Keywords: cache added
Milestone: 18.05

comment:5 Changed 11 months ago by Don-vip

Resolution: fixed
Status: newclosed

In 13816/josm:

fix #10229 - clear cached style of ways when they are moved (without tagging or structural change)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.