一、图层配置
roadWall:{ entities:[], options:{ name:'走航', isShow:true, isFlash:false }, entityType:'wall' }
二、符号配置
roadWallSymb0l1:{ type:'simple-fill', color:[0, 206, 0, 178.5] }, roadWallSymb0l2:{ type:'simple-fill', color:[254, 255, 3, 178.5] }, roadWallSymb0l3:{ type:'simple-fill', color:[255, 101, 0, 178.5] }, roadWallSymb0l4:{ type:'simple-fill', color:[254, 0, 0, 178.5] }, roadWallSymb0l5:{ type:'simple-fill', color:[129, 0, 127, 178.5] }, roadWallSymb0l6:{ type:'simple-fill', color:[128, 0, 0, 178.5] }
三、渲染设置
roadWall: { renderType: "unique", renderField: "level", FieldUnique: [ { value: "1", symbol: Layersymbols.roadWallSymb0l1 }, { value: "2", symbol: Layersymbols.roadWallSymb0l2 }, { value: "3", symbol: Layersymbols.roadWallSymb0l3 }, { value: "4", symbol: Layersymbols.roadWallSymb0l4 }, { value: "5", symbol: Layersymbols.roadWallSymb0l5 }, { value: "6", symbol: Layersymbols.roadWallSymb0l6 } ] }
四、走航示例数据
roadData=[ { code:'t1', positions: [115.68511247634886, 34.418017898274584, 115.685316324234, 34.418009047673245 , 115.68559527397154, 34.418009047673245 , 115.68578839302063, 34.41800019707099 , 115.68613171577454, 34.418009047673245 , 115.68644285202025, 34.41800019707099 , 115.68668961524962, 34.41800019707099 , 115.68697929382324, 34.418009047673245 ], minimumHeights:[22,10,35,20,11,3,46,37], level:1 }, { code:'t3', positions: [115.68697929382324, 34.418009047673245, 115.68718314170837, 34.418009047673245 , 115.68736553192137, 34.418009047673245 , 115.6875693798065, 34.418009047673245 , 115.68778395652771, 34.418009047673245 , 115.68796634674071, 34.418009047673245 , 115.68813800811766, 34.41800019707099 , 115.6883955001831, 34.418009047673245 , 115.68868517875671, 34.418009047673245 , 115.68894267082213, 34.418009047673245 , 115.68921089172363, 34.418009047673245 ], minimumHeights:[53,66,89,66,95,53,66,89,66,95,60], level:2 }, { code:'t4', positions: [115.68921089172363, 34.418009047673245 , 115.68942546844481, 34.418009047673245 , 115.68965077400208, 34.418009047673245 , 115.6898546218872, 34.41800019707099 , 115.69004774093628, 34.41800019707099 , 115.69031596183775, 34.41800019707099 , 115.6904125213623, 34.4179205416084 , 115.69042325019836, 34.41779663296021 , 115.69040179252625, 34.41761076964369 , 115.6904125213623, 34.41743375657722 , 115.69043397903441, 34.417177086965275 , 115.6904125213623, 34.416920416565546 ], minimumHeights:[201,233,255,289,300,266,201,233,255,289,300,266], level:5 }, { code:'t6', positions: [115.6904125213623, 34.416920416565546, 115.6904125213623, 34.41676995424082 , 115.69040179252625, 34.41662834239378 , 115.6904125213623, 34.416495581069384 , 115.6904125213623, 34.41634511798028 , 115.69043397903441, 34.416203505413826 , 115.69043397903441, 34.41604419098992 , 115.69045543670654, 34.41588487626252 , 115.69044470787048, 34.415760964598036 , 115.6904125213623, 34.415592798474 , 115.69044470787048, 34.41545118463362 , 115.69045543670654, 34.41527416699587 ], minimumHeights:[155,166,199,200,188,177,155,166,199,200,188,177], level:4 }, { code:'t5', positions: [ 115.69045543670654, 34.41527416699587, 115.69045543670654, 34.41511485080157 , 115.69046616554259, 34.41497323615185 , 115.69046616554259, 34.414751962781565 , 115.69045543670654, 34.41455724173147 , 115.69045543670654, 34.41434481825064 , 115.69044470787048, 34.41416779827112 , 115.69046616554259, 34.41399962894355 , 115.69046616554259, 34.41386686344606 ], minimumHeights:[310,305,366,399,310,305,366,399,364], level:6 }, { code:'t2', positions: [ 115.69046616554259, 34.41386686344606, 115.69045543670654, 34.413751799844434 , 115.69058418273926, 34.41376065089635 , 115.69079875946044, 34.41376065089635 , 115.69098114967346, 34.41376950194729 , 115.69124937057495, 34.413804906141785 , 115.69141030311584, 34.41378720404641 , 115.69151759147643, 34.41379605509456 , 115.69163560867308, 34.41379605509456 , 115.69186091423035, 34.41379605509456], minimumHeights:[111,144,139,150,122,111,144,139,150,121], level:3 }, ]
五、走航成果展示
如果对您有帮助
感谢支持技术分享,请扫码点赞支持:
技术合作交流qq:2401315930