added map toggle directive