diff --git a/example/imagery/exampleImages.js b/example/imagery/exampleImages.js
new file mode 100644
index 00000000000..fbb6b3a9f82
--- /dev/null
+++ b/example/imagery/exampleImages.js
@@ -0,0 +1,30 @@
+/*****************************************************************************
+ * Open MCT, Copyright (c) 2014-2024, United States Government
+ * as represented by the Administrator of the National Aeronautics and Space
+ * Administration. All rights reserved.
+ *
+ * Open MCT is licensed under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0.
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations
+ * under the License.
+ *
+ * Open MCT includes source code licensed under additional open source
+ * licenses. See the Open Source Licenses file (LICENSES.md) included with
+ * this source code distribution or the Licensing information page available
+ * at runtime from the About dialog for additional information.
+ *****************************************************************************/
+
+/**
+ * Import all *.jpg files from the images folder, add to an array
+ * and export for use in the plugin.
+ */
+const imagesContext = require.context('@/../example/imagery/images', false, /\.jpg$/);
+const imageArray = imagesContext.keys().map((key) => imagesContext(key));
+
+export default imageArray;
diff --git a/example/imagery/images/AS16-117-18731.jpg b/example/imagery/images/AS16-117-18731.jpg
new file mode 100644
index 00000000000..ea033dd4a86
Binary files /dev/null and b/example/imagery/images/AS16-117-18731.jpg differ
diff --git a/example/imagery/images/AS16-117-18732.jpg b/example/imagery/images/AS16-117-18732.jpg
new file mode 100644
index 00000000000..cee98848e8a
Binary files /dev/null and b/example/imagery/images/AS16-117-18732.jpg differ
diff --git a/example/imagery/images/AS16-117-18733.jpg b/example/imagery/images/AS16-117-18733.jpg
new file mode 100644
index 00000000000..d72f12da304
Binary files /dev/null and b/example/imagery/images/AS16-117-18733.jpg differ
diff --git a/example/imagery/images/AS16-117-18734.jpg b/example/imagery/images/AS16-117-18734.jpg
new file mode 100644
index 00000000000..d37d60fbda5
Binary files /dev/null and b/example/imagery/images/AS16-117-18734.jpg differ
diff --git a/example/imagery/images/AS16-117-18735.jpg b/example/imagery/images/AS16-117-18735.jpg
new file mode 100644
index 00000000000..4ec13a5412c
Binary files /dev/null and b/example/imagery/images/AS16-117-18735.jpg differ
diff --git a/example/imagery/images/AS16-117-18736.jpg b/example/imagery/images/AS16-117-18736.jpg
new file mode 100644
index 00000000000..9d76a94ff61
Binary files /dev/null and b/example/imagery/images/AS16-117-18736.jpg differ
diff --git a/example/imagery/images/AS16-117-18737.jpg b/example/imagery/images/AS16-117-18737.jpg
new file mode 100644
index 00000000000..8021317126c
Binary files /dev/null and b/example/imagery/images/AS16-117-18737.jpg differ
diff --git a/example/imagery/images/AS16-117-18738.jpg b/example/imagery/images/AS16-117-18738.jpg
new file mode 100644
index 00000000000..b85ee571e82
Binary files /dev/null and b/example/imagery/images/AS16-117-18738.jpg differ
diff --git a/example/imagery/images/AS16-117-18739.jpg b/example/imagery/images/AS16-117-18739.jpg
new file mode 100644
index 00000000000..a228ed75eeb
Binary files /dev/null and b/example/imagery/images/AS16-117-18739.jpg differ
diff --git a/example/imagery/images/AS16-117-18740.jpg b/example/imagery/images/AS16-117-18740.jpg
new file mode 100644
index 00000000000..e1a0eb192d1
Binary files /dev/null and b/example/imagery/images/AS16-117-18740.jpg differ
diff --git a/example/imagery/images/AS16-117-18741.jpg b/example/imagery/images/AS16-117-18741.jpg
new file mode 100644
index 00000000000..3b4e68ac825
Binary files /dev/null and b/example/imagery/images/AS16-117-18741.jpg differ
diff --git a/example/imagery/images/AS16-117-18742.jpg b/example/imagery/images/AS16-117-18742.jpg
new file mode 100644
index 00000000000..ed5e5087e56
Binary files /dev/null and b/example/imagery/images/AS16-117-18742.jpg differ
diff --git a/example/imagery/images/AS16-117-18743.jpg b/example/imagery/images/AS16-117-18743.jpg
new file mode 100644
index 00000000000..f5300c27d35
Binary files /dev/null and b/example/imagery/images/AS16-117-18743.jpg differ
diff --git a/example/imagery/images/AS16-117-18744.jpg b/example/imagery/images/AS16-117-18744.jpg
new file mode 100644
index 00000000000..66b6de59e04
Binary files /dev/null and b/example/imagery/images/AS16-117-18744.jpg differ
diff --git a/example/imagery/images/AS16-117-18745.jpg b/example/imagery/images/AS16-117-18745.jpg
new file mode 100644
index 00000000000..8a7b729de34
Binary files /dev/null and b/example/imagery/images/AS16-117-18745.jpg differ
diff --git a/example/imagery/plugin.js b/example/imagery/plugin.js
index 9d37bbc925a..386a557e185 100644
--- a/example/imagery/plugin.js
+++ b/example/imagery/plugin.js
@@ -19,27 +19,11 @@
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
+import DEFAULT_IMAGE_SAMPLES from '@/../example/imagery/exampleImages.js';
+import Layer16x9 from '@/plugins/imagery/layers/example-imagery-layer-16x9.png';
+import LayerSafe from '@/plugins/imagery/layers/example-imagery-layer-safe.png';
+import LayerScale from '@/plugins/imagery/layers/example-imagery-layer-scale.png';
-const DEFAULT_IMAGE_SAMPLES = [
- 'https://www.nasa.gov/wp-content/uploads/static/history/alsj/a16/AS16-117-18731.jpg',
- 'https://www.nasa.gov/wp-content/uploads/static/history/alsj/a16/AS16-117-18732.jpg',
- 'https://www.nasa.gov/wp-content/uploads/static/history/alsj/a16/AS16-117-18733.jpg',
- 'https://www.nasa.gov/wp-content/uploads/static/history/alsj/a16/AS16-117-18734.jpg',
- 'https://www.nasa.gov/wp-content/uploads/static/history/alsj/a16/AS16-117-18735.jpg',
- 'https://www.nasa.gov/wp-content/uploads/static/history/alsj/a16/AS16-117-18736.jpg',
- 'https://www.nasa.gov/wp-content/uploads/static/history/alsj/a16/AS16-117-18737.jpg',
- 'https://www.nasa.gov/wp-content/uploads/static/history/alsj/a16/AS16-117-18738.jpg',
- 'https://www.nasa.gov/wp-content/uploads/static/history/alsj/a16/AS16-117-18739.jpg',
- 'https://www.nasa.gov/wp-content/uploads/static/history/alsj/a16/AS16-117-18740.jpg',
- 'https://www.nasa.gov/wp-content/uploads/static/history/alsj/a16/AS16-117-18741.jpg',
- 'https://www.nasa.gov/wp-content/uploads/static/history/alsj/a16/AS16-117-18742.jpg',
- 'https://www.nasa.gov/wp-content/uploads/static/history/alsj/a16/AS16-117-18743.jpg',
- 'https://www.nasa.gov/wp-content/uploads/static/history/alsj/a16/AS16-117-18744.jpg',
- 'https://www.nasa.gov/wp-content/uploads/static/history/alsj/a16/AS16-117-18745.jpg',
- 'https://www.nasa.gov/wp-content/uploads/static/history/alsj/a16/AS16-117-18746.jpg',
- 'https://www.nasa.gov/wp-content/uploads/static/history/alsj/a16/AS16-117-18747.jpg',
- 'https://www.nasa.gov/wp-content/uploads/static/history/alsj/a16/AS16-117-18748.jpg'
-];
const DEFAULT_IMAGE_LOAD_DELAY_IN_MILLISECONDS = 20000;
const MIN_IMAGE_LOAD_DELAY_IN_MILLISECONDS = 5000;
@@ -94,15 +78,15 @@ export default function () {
},
layers: [
{
- source: 'dist/imagery/example-imagery-layer-16x9.png',
+ source: Layer16x9,
name: '16:9'
},
{
- source: 'dist/imagery/example-imagery-layer-safe.png',
+ source: LayerSafe,
name: 'Safe'
},
{
- source: 'dist/imagery/example-imagery-layer-scale.png',
+ source: LayerScale,
name: 'Scale'
}
]
@@ -168,18 +152,15 @@ function getCompassValues(min, max) {
function getImageSamples(configuration) {
let imageSamples = DEFAULT_IMAGE_SAMPLES;
+ const { imageLocation } = configuration;
- if (configuration.imageLocation && configuration.imageLocation.length) {
- imageSamples = getImageUrlListFromConfig(configuration);
+ if (imageLocation && imageLocation.length) {
+ imageSamples = imageLocation;
}
return imageSamples;
}
-function getImageUrlListFromConfig(configuration) {
- return configuration.imageLocation.split(',');
-}
-
function getImageLoadDelay(domainObject) {
const imageLoadDelay = Math.trunc(
Number(domainObject.configuration.imageLoadDelayInMilliSeconds)
diff --git a/index.html b/index.html
index 0290f6d0062..da07198cfde 100644
--- a/index.html
+++ b/index.html
@@ -31,21 +31,21 @@