Added functionality to change map type