//>>built
define("demos/shippingRoutes/src/LegsRenderer",["dojo/_base/declare","dojo/_base/array","./EcrRenderer","dojox/geo/openlayers/GeometryFeature","dojox/geo/openlayers/LineString","dojox/geo/openlayers/Point","dojox/geo/openlayers/GreatCircle"],function(_1,_2,_3,_4,_5,_6,_7){return _1(_3,{constructor:function(_8,_9){this._geodetic=false;this._greatCircle=null;},setGeodetic:function(_a){this._geodetic=_a;},getGeodetic:function(){return this._geodetic;},_renderItem:function(o,_b){var gf=null;if(o.type=="polyline"){var _c=this.getContextValue("store");var _d=_c.getValues(_b,"stops");var _e=[];var _f=null;_2.forEach(_d,function(it,_10,_11){if(_c.isItem(it)){var _12=this.getValue(it,"port");var _13=this.getCoordinates(_12);if(this.getGeodetic()){if(_f!=null){var _14={x:_13[0],y:_13[1]};var _15=_7.toPointArray(_f,_14,5);_e=_e.concat(_15);}}else{var p=new _6({x:_13[0],y:_13[1]});_e.push(p);}_f={x:_13[0],y:_13[1]};}},this);var g=new _5(_e);gf=new _4(g);}return gf;}});});