Added permit map and toggle control for map type