Fix map legend toggle