Refactor select location with map. Copy code out of try.