add map location function