Commit bf0048e3e1fc6ce2d7a71e88df4e79d2c4766827
1 parent
0e873d24
code is written but not working.need to see
Showing
2 changed files
with
25 additions
and
3 deletions
400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js
... | ... | @@ -948,6 +948,25 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo |
948 | 948 | } |
949 | 949 | |
950 | 950 | } |
951 | + | |
952 | + | |
953 | + $scope.hidePins = function () { | |
954 | + debugger; | |
955 | + angular.forEach($scope.aaPinData, function (aaPinDataValue, aaPinDataKey) { | |
956 | + | |
957 | + var pinName = 'Pin_' + aaPinDataValue._PinId; | |
958 | + var pinArcName = 'PinArc_' + aaPinDataValue._PinId; | |
959 | + | |
960 | + $('#aaDetailViewCanvas').setLayer(pinName, { | |
961 | + visible: false // set to true instead to show the layer again | |
962 | + }).drawLayers(); | |
963 | + | |
964 | + $('#aaDetailViewCanvas').setLayer(pinArcName, { | |
965 | + visible: false // set to true instead to show the layer again | |
966 | + }).drawLayers(); | |
967 | + }) | |
968 | + | |
969 | + } | |
951 | 970 | }]); |
952 | 971 | |
953 | 972 | function showSelectedSystemPins(event) { |
... | ... | @@ -957,6 +976,9 @@ function showSelectedSystemPins(event) { |
957 | 976 | scope.showSelectedSystemPins(event); |
958 | 977 | }); |
959 | 978 | } |
960 | -onCloseBtnClick = function (event) { | |
961 | - alert('closed') | |
979 | +hidePins = function (event) { | |
980 | + var scope = angular.element(document.getElementById("aaDetailPageDiv")).scope(); | |
981 | + scope.$apply(function () { | |
982 | + scope.hidePins(event); | |
983 | + }); | |
962 | 984 | } |
963 | 985 | \ No newline at end of file | ... | ... |
400-SOURCECODE/AIAHTML5.Web/app/views/aa/atlas-anatomy-detail.html
... | ... | @@ -29,7 +29,7 @@ |
29 | 29 | <div class="tools pull-left" style="top:44px;"> |
30 | 30 | <div class="toggle-icon toggleBar toggleHeadingButton" data-toggle="tooltip" data-placement="top" title="Show/Hide Sidebar"></div> |
31 | 31 | <div class=""> |
32 | - <div class="col-sm-6" title="Hide Pins"><button class="btn btn-black btn-sm" > <img src="../../../content/images/aa/LeftMenu/hide-pin.png" alt="" title=""></button> </div> | |
32 | + <div class="col-sm-6" title="Hide Pins"><button onclick="hidePins()" class="btn btn-black btn-sm" > <img src="../../../content/images/aa/LeftMenu/hide-pin.png" alt="" title=""></button> </div> | |
33 | 33 | <div class="col-sm-6" title="Show Selected Pins"><button class="btn btn-black btn-sm pull-right"><img src="../../../content/images/aa/LeftMenu/draw-pin.png" alt="" title=""></button></div> |
34 | 34 | <div class="col-sm-6" title="Show All Pins in System(s)"><button class="btn btn-primary btn-sm marginTop5"><img src="../../../content/images/aa/LeftMenu/all-pin.png" alt="" title=""></button></div> |
35 | 35 | <div class="col-sm-6" title="Select System"> | ... | ... |