From 5a4a912f79b5648e4f1adf2fb6884dadda8c6e2c Mon Sep 17 00:00:00 2001 From: Victor Woeltjen Date: Wed, 17 Jun 2015 20:12:04 -0700 Subject: [PATCH] [Imagery] Only display images when loaded Wait until image telemetry is completely loaded before displaying it, WTD-1170. --- platform/features/imagery/bundle.json | 7 ++ .../imagery/res/templates/imagery.html | 4 +- .../src/directives/MCTBackgroundImage.js | 89 +++++++++++++++++++ .../imagery/src/directives/MCTImage.js | 53 ----------- 4 files changed, 99 insertions(+), 54 deletions(-) create mode 100644 platform/features/imagery/src/directives/MCTBackgroundImage.js delete mode 100644 platform/features/imagery/src/directives/MCTImage.js diff --git a/platform/features/imagery/bundle.json b/platform/features/imagery/bundle.json index 034e3f8313..68c5b27596 100644 --- a/platform/features/imagery/bundle.json +++ b/platform/features/imagery/bundle.json @@ -22,6 +22,13 @@ "implementation": "controllers/ImageryController.js", "depends": [ "$scope", "telemetryHandler", "telemetryFormatter" ] } + ], + "directives": [ + { + "key": "mctBackgroundImage", + "implementation": "directives/MCTBackgroundImage.js", + "depends": [ "$document" ] + } ] } } diff --git a/platform/features/imagery/res/templates/imagery.html b/platform/features/imagery/res/templates/imagery.html index 13864d5375..ae91f9c854 100644 --- a/platform/features/imagery/res/templates/imagery.html +++ b/platform/features/imagery/res/templates/imagery.html @@ -29,13 +29,15 @@
+
'); - div = element.children().eq(0); - } - - return { - scope: { src: "=" }, - link: link - }; - } - - } -);