Implement notifications for map size changing. Part of #78.