| | |
| | | positions = positions.join(';') |
| | | coverage = new global.DC.Wall(positions) |
| | | |
| | | let multiple, speed |
| | | if (params.iconUrl.indexOf('1') != -1) { |
| | | multiple = 250 |
| | | speed = 3 |
| | | } else if (params.iconUrl.indexOf('2') != -1) { |
| | | multiple = 195 |
| | | speed = 3 |
| | | } else { |
| | | multiple = 50 |
| | | speed = 10 |
| | | } |
| | | |
| | | if (params.areaType == 2) { |
| | | coverage.setStyle({ |
| | | material: new global.DC.WallImageTrailMaterialProperty({ |
| | | image: '/images/jjx.png', |
| | | image: params.iconUrl, |
| | | color: color.curColor, |
| | | repeat: { |
| | | x: getLineSpeed(position.split(';').map(item => { |
| | | item.split(',') |
| | | |
| | | return [Number(item.split(',')[0]), Number(item.split(',')[1])] |
| | | })), y: 1 |
| | | }), multiple), y: 1 |
| | | }, |
| | | speed: 10 |
| | | speed: speed |
| | | }) |
| | | }) |
| | | } else { |