Another app note from NXP on PCB design guidelines when using magnetic sensitive sensors. Link here (PDF)
Unlike accelerometer, pressure, and gyroscope MEMS sensors, which use mechanical sensing elements unaffected by electromagnetic components on the PCB, magnetometers are sensitive to the magnetic fields generated by other circuit components.
The most common magnetic field sources are:
• permanent ferromagnets (as found in speakers or buzzers)
• induced fields within any ferromagnetic material lacking a permanent field (such as sheet steel)
• fields generated by current flows (ranging from strong currents in power supply tracks to smaller currents within coils).