update baidu map css
update dir logic