  We study the magnetic moments and transition magnetic moments of $P_c$ and
$P_{cs}$ states in the molecular picture. We first revisit the magnetic moments
of $P_c$ states as the $S$ wave molecular states without coupled channel
effects. The coupled channel effects and the $D$ wave contributions are then
investigated carefully. The coupled channel effects contribute to the change of
$0.1\sim 0.4$ nuclear magneton $\mu_N$ for most cases while the $D$ wave only
induces the variation of less than $0.03 ~\mu_N$. In addition, we obtain the
transition magnetic moments between different $P_c$ states and the related
electromagnetic decay widths of $P_c'\to P_c\gamma$. The magnetic moments of
$P_{cs}$ are much different for the assumption of spin being 1/2 and 3/2. The
study of electromagnetic properties will help us disclose further the structure
of these unconventional states.
