fix polyline.
Merge pull request #2141 from zhangzl2013/polyline

fix polyline.