sample animated map code