Skip to content

Commit e3b9ea9

Browse files
Merge pull request #31 from JPL-Devin/devin/1776199442-cesium-gradient-polyline
feat: add 3D Cesium gradient polyline support and performance optimizations
2 parents 9345f8f + e5a9a40 commit e3b9ea9

9 files changed

Lines changed: 2381 additions & 370 deletions

File tree

Lines changed: 306 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,306 @@
1+
{
2+
"type": "FeatureCollection",
3+
"coord_properties": [null, null, "elevation", "speed", "roll"],
4+
"features": [
5+
{
6+
"type": "Feature",
7+
"properties": {
8+
"name": "3D Spiral Ascent",
9+
"coord_properties": [
10+
null,
11+
null,
12+
"elevation",
13+
"speed",
14+
"roll"
15+
],
16+
"traverse_type": "spiral_ascent",
17+
"total_distance_km": 15.2
18+
},
19+
"geometry": {
20+
"type": "LineString",
21+
"coordinates": [
22+
[
23+
-122.4676,
24+
37.81,
25+
50.0,
26+
0.5,
27+
0.0
28+
],
29+
[
30+
-122.467748,
31+
37.811182,
32+
125.6,
33+
0.74,
34+
3.29
35+
],
36+
[
37+
-122.468474,
38+
37.812212,
39+
201.3,
40+
0.98,
41+
3.74
42+
],
43+
[
44+
-122.469659,
45+
37.81281,
46+
276.9,
47+
1.22,
48+
0.96
49+
],
50+
[
51+
-122.471055,
52+
37.812781,
53+
352.6,
54+
1.45,
55+
-2.65
56+
],
57+
[
58+
-122.472334,
59+
37.812068,
60+
428.2,
61+
1.68,
62+
-3.97
63+
],
64+
[
65+
-122.473167,
66+
37.810781,
67+
503.8,
68+
1.89,
69+
-1.86
70+
],
71+
[
72+
-122.473306,
73+
37.809185,
74+
579.5,
75+
2.1,
76+
1.86
77+
],
78+
[
79+
-122.472656,
80+
37.807647,
81+
655.1,
82+
2.3,
83+
3.97
84+
],
85+
[
86+
-122.471309,
87+
37.806548,
88+
730.8,
89+
2.49,
90+
2.65
91+
],
92+
[
93+
-122.469538,
94+
37.806192,
95+
806.4,
96+
2.66,
97+
-0.96
98+
],
99+
[
100+
-122.467739,
101+
37.806725,
102+
882.1,
103+
2.82,
104+
-3.74
105+
],
106+
[
107+
-122.466349,
108+
37.808084,
109+
957.7,
110+
2.97,
111+
-3.29
112+
],
113+
[
114+
-122.465733,
115+
37.81,
116+
1033.3,
117+
3.1,
118+
-0.0
119+
],
120+
[
121+
-122.466095,
122+
37.81205,
123+
1109.0,
124+
3.21,
125+
3.29
126+
],
127+
[
128+
-122.467413,
129+
37.813748,
130+
1184.6,
131+
3.31,
132+
3.74
133+
],
134+
[
135+
-122.469434,
136+
37.814663,
137+
1260.3,
138+
3.38,
139+
0.96
140+
],
141+
[
142+
-122.471717,
143+
37.814526,
144+
1335.9,
145+
3.44,
146+
-2.65
147+
],
148+
[
149+
-122.473731,
150+
37.813305,
151+
1411.5,
152+
3.48,
153+
-3.97
154+
],
155+
[
156+
-122.474979,
157+
37.811227,
158+
1487.2,
159+
3.5,
160+
-1.86
161+
],
162+
[
163+
-122.475119,
164+
37.808738,
165+
1562.8,
166+
3.5,
167+
1.86
168+
],
169+
[
170+
-122.474053,
171+
37.806409,
172+
1638.5,
173+
3.48,
174+
3.97
175+
],
176+
[
177+
-122.471971,
178+
37.804802,
179+
1714.1,
180+
3.44,
181+
2.65
182+
],
183+
[
184+
-122.469313,
185+
37.804339,
186+
1789.7,
187+
3.38,
188+
-0.96
189+
],
190+
[
191+
-122.466679,
192+
37.805189,
193+
1865.4,
194+
3.31,
195+
-3.74
196+
],
197+
[
198+
-122.464696,
199+
37.807216,
200+
1941.0,
201+
3.21,
202+
-3.29
203+
],
204+
[
205+
-122.463867,
206+
37.81,
207+
2016.7,
208+
3.1,
209+
-0.0
210+
],
211+
[
212+
-122.464442,
213+
37.812917,
214+
2092.3,
215+
2.97,
216+
3.29
217+
],
218+
[
219+
-122.466353,
220+
37.815284,
221+
2167.9,
222+
2.82,
223+
3.74
224+
],
225+
[
226+
-122.469209,
227+
37.816516,
228+
2243.6,
229+
2.66,
230+
0.96
231+
],
232+
[
233+
-122.472379,
234+
37.816272,
235+
2319.2,
236+
2.49,
237+
-2.65
238+
],
239+
[
240+
-122.475128,
241+
37.814543,
242+
2394.9,
243+
2.3,
244+
-3.97
245+
],
246+
[
247+
-122.476792,
248+
37.811674,
249+
2470.5,
250+
2.1,
251+
-1.86
252+
],
253+
[
254+
-122.476931,
255+
37.808292,
256+
2546.2,
257+
1.89,
258+
1.86
259+
],
260+
[
261+
-122.475451,
262+
37.805171,
263+
2621.8,
264+
1.68,
265+
3.97
266+
],
267+
[
268+
-122.472633,
269+
37.803057,
270+
2697.4,
271+
1.45,
272+
2.65
273+
],
274+
[
275+
-122.469088,
276+
37.802486,
277+
2773.1,
278+
1.22,
279+
-0.96
280+
],
281+
[
282+
-122.465619,
283+
37.803652,
284+
2848.7,
285+
0.98,
286+
-3.74
287+
],
288+
[
289+
-122.463043,
290+
37.806349,
291+
2924.4,
292+
0.74,
293+
-3.29
294+
],
295+
[
296+
-122.462,
297+
37.81,
298+
3000.0,
299+
0.5,
300+
-0.0
301+
]
302+
]
303+
}
304+
}
305+
]
306+
}

blueprints/Missions/Reference-Mission/config.reference-mission.json

Lines changed: 49 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,12 @@
8383
"panels": {
8484
"viewer": true,
8585
"map": true,
86-
"globe": true
86+
"globe": true,
87+
"defaultWidths": {
88+
"viewer": 0,
89+
"map": 30,
90+
"globe": 70
91+
}
8792
},
8893
"panelSettings": {
8994
"demFallbackPath": "Data/DEMs/USGS_13_n38w123_20250826_SFHill.tif",
@@ -402,6 +407,48 @@
402407
"controlled": false,
403408
"uuid": "ce662d44-a96e-4e19-8e7b-e89ea2727dd1"
404409
},
410+
{
411+
"name": "Hotline Gradient 3D",
412+
"kind": "vector",
413+
"type": "vector",
414+
"url": "Layers/Vectors/hotline-gradient-3d.geojson",
415+
"demtileurl": "",
416+
"on": true,
417+
"visibility": true,
418+
"initialOpacity": 1,
419+
"style": {
420+
"color": "#ffffff",
421+
"weight": 2,
422+
"opacity": 1,
423+
"fillOpacity": 0.5
424+
},
425+
"variables": {
426+
"hideMainFeature": true,
427+
"pathAttachments": {
428+
"gradient": {
429+
"enabled": true,
430+
"colorWithProp": "elevation",
431+
"dropdownColorWithProp": [
432+
"elevation",
433+
"speed",
434+
"roll"
435+
],
436+
"colorRamp": [
437+
"#0000ff",
438+
"#00ffff",
439+
"#00ff00",
440+
"#ffff00",
441+
"#ff0000"
442+
],
443+
"weight": 5
444+
}
445+
}
446+
},
447+
"description": "3D gradient polyline demonstration with elevation-based positioning in the Cesium globe. Routes with varied elevation values (50-2000m) colored by elevation, speed, or roll.",
448+
"demparser": "",
449+
"controlled": false,
450+
"uuid": "d7a3f1b2-5c8e-4d12-a9f0-3b6e8c2d1f4a"
451+
},
405452
{
406453
"name": "Uncertainty Ellipses",
407454
"type": "vector",
@@ -3309,4 +3356,4 @@
33093356
}
33103357
}
33113358
]
3312-
}
3359+
}

configure/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "configure",
3-
"version": "4.3.8-20260413",
3+
"version": "4.3.11-20260417",
44
"homepage": "./configure/build",
55
"private": true,
66
"dependencies": {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mmgis",
3-
"version": "4.3.8-20260413",
3+
"version": "4.3.11-20260417",
44
"description": "A web-based mapping and localization solution for science operation on planetary missions.",
55
"homepage": "build",
66
"repository": {

0 commit comments

Comments
 (0)