'segment' .create('segment', [P1,P2], {strokeWidth:1, strokeColor:'black', showInfoBox:false, visible:true, size:2});