add legend control to the map