refactored: switch case for locationTypes moved to new method ajaxListLocationTypes
unit test for MapController added, test case renamed to match tested method