A Map for Systems with Resonant Trappings and Scatterings