add ability to change the maps type