Commit 685a3c1c528298574b867d73f29615c9b1d9ca62
1 parent
1c5ca50c
Commit Changes
Showing
1 changed file
with
19 additions
and
4 deletions
400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js
... | ... | @@ -1131,7 +1131,7 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou |
1131 | 1131 | } |
1132 | 1132 | |
1133 | 1133 | } |
1134 | - | |
1134 | + $scope.isSelectedPinBtnClickedAftrSliderCange = false; | |
1135 | 1135 | var selectedPinData = new jinqJs() |
1136 | 1136 | .from($scope.aaPinData) |
1137 | 1137 | .where("_PinId == " + pinID) |
... | ... | @@ -1460,7 +1460,7 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou |
1460 | 1460 | |
1461 | 1461 | $scope.showSelectedPins = function () { |
1462 | 1462 | |
1463 | - | |
1463 | + debugger; | |
1464 | 1464 | $rootScope.isLoading = true; |
1465 | 1465 | $('#spinner').css('visibility', 'visible'); |
1466 | 1466 | |
... | ... | @@ -1479,7 +1479,22 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou |
1479 | 1479 | $(".tooltip-custom").removeClass("btn-primary"); |
1480 | 1480 | $(".tooltip-custom").addClass("btn-black"); |
1481 | 1481 | $("#selectedPin").addClass("btn-primary"); |
1482 | - | |
1482 | + | |
1483 | + if ($scope.isSelectedPinBtnClickedAftrSliderCange == true) { | |
1484 | + | |
1485 | + for (var i = 0; i <= $scope.activePinArray.length - 1; i++) { | |
1486 | + var pinName = $scope.activePinArray[i].split("_"); | |
1487 | + var activePinName = 'Pin_' + pinName[1]; | |
1488 | + var pinArcName = 'PinArc_' + pinName[1]; | |
1489 | + $('#aaDetailViewCanvas').setLayer(activePinName, { | |
1490 | + visible: true // set to true instead to show the layer again | |
1491 | + }).drawLayers(); | |
1492 | + $('#aaDetailViewCanvas').setLayer(pinArcName, { | |
1493 | + visible: true // set to true instead to show the layer again | |
1494 | + }).drawLayers(); | |
1495 | + } | |
1496 | + | |
1497 | + } | |
1483 | 1498 | }; |
1484 | 1499 | |
1485 | 1500 | |
... | ... | @@ -1962,7 +1977,7 @@ $(document).ready(function () { |
1962 | 1977 | $('#' + btnID).addClass("btn-primary"); |
1963 | 1978 | } |
1964 | 1979 | }); |
1965 | - | |
1980 | + scope.isSelectedPinBtnClickedAftrSliderCange = true; | |
1966 | 1981 | switch (btnID) { |
1967 | 1982 | |
1968 | 1983 | case "hidePinBtn": | ... | ... |