Added new method to set zIndex of polyline.