From f9636dc4b5c91f468fad1b1cbe5c722b2e7c50e2 Mon Sep 17 00:00:00 2001 From: Thannarot Date: Thu, 1 Aug 2019 12:24:19 +0700 Subject: [PATCH] fixed bug when the year is changed a composite map is not updated --- landcoverportal/static/app/controllers/landcover-controller.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/landcoverportal/static/app/controllers/landcover-controller.js b/landcoverportal/static/app/controllers/landcover-controller.js index 180607d..49702c5 100644 --- a/landcoverportal/static/app/controllers/landcover-controller.js +++ b/landcoverportal/static/app/controllers/landcover-controller.js @@ -611,6 +611,7 @@ if ($('#land-cover-classes-tab').hasClass('active')) { $scope.updateAssemblageProduct('v3'); $scope.showProbabilityMap(); + $scope.showCompositeMap(); } else if ($('#primitive-tab').hasClass('active')) { $scope.updatePrimitive($scope.primitiveIndex, 'v3'); } @@ -940,7 +941,7 @@ showErrorAlert(error.error); console.log(error); }); - }, 15000); + }, 2000); }; $scope.toggleCompositeMap = function () {