1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
| function addRangeYuan() { let data = { id: 'Range_100', template_id: 'Range_1', template_name: ' 区域轮廓1', template_icon: 'CityToolConfig/ToolUI/Icon/区域1.jpg', opt: 'ADDRANGE', type: 'Type_1', coord_z: 25480, color: '247424ff', range_height: 300, fill_area: true, fill_color: '24742400', points: [] }
let center = [10297.546875, -33800.582031] const pts = getCirclePoints(center[0], center[1], 30000, 40)
for (let i = 0; i < pts.length; i++) { data.points.push({ coord: `${pts[i].x},${pts[i].y}`, coord_z: -10271.828125 }) }
ueCall(data) }
|