Ensures correct globalCompositeOperation is set when changing map.