基于百度地图官方demo(http://bbs.lbsyun.baidu.com/forum.php?mod=viewthread&tid=116215&highlight=%E5%B9%B3%E6%BB%91%E7%A7%BB%E5%8A%A8) 修改得来的