We have created an application where a map fills most of the page, but we also have menus on the left and right side that will open and close depending on what the user is doing. In some cases the user will want to keep one or both the menus open all the time, so we have also provided the possibility to pin the menus. The problem is that when the menus are pinned, we also change the size of the map, and when we do this any shapes that are drawn on the map disappear. We can make them reappear by zooming in or out, and this is only a problem when UseSpringAnimations is set to false, as setting this to true makes the map force some zoom action.