missioncommand / emp3-web

Extensible Map Platform (EMP) web development kit
Other
19 stars 9 forks source link

Implement path stippling in Cesium engine. #312

Closed alberto-acevedo closed 7 years ago

alberto-acevedo commented 7 years ago

Cesium sdk 1.33 supports polyline stippling. Enable this capability in EMP Cesium.

alberto-acevedo commented 7 years ago

The polyline stippling capability was implemented in the Cesium engine. I could not find in the core the string values to use to specify the patterns. I hard coded the following patterns in the engine until an official list of values is available: (dash, short dash, long dash, dot). An alternative is to use numeric patterns as it is specified in CMAPI. Need to discuss.

alberto-acevedo commented 7 years ago

test case:

Use branch 312. Use API tester. Use Cesium. Plot a path. Set the stippling factor to 4 and the pattern to dash. The test is a success if the line shows the dash pattern. Plot a path. Set the stippling factor to 4 and the pattern to short dash. The test is a success if the line shows the short dash pattern. Plot a path. Set the stippling factor to 4 and the pattern to long dash. The test is a success if the line shows the long dash pattern. Plot a path. Set the stippling factor to 4 and the pattern to dot. The test is a success if the line shows the dot pattern. Plot a path. Set the stippling factor to 4 and the pattern to none. The test is a success if the line shows the dot pattern.

mubinakhan commented 7 years ago

Reintegrate

alberto-acevedo commented 7 years ago

Merged into the dev branch. Closing this issue.

Mike: Stippling pattern list need to be specified in the API. Cesium is assuming the following list: dash, short dash, long dash, dot, none.