location function added for baidu map