Commit b4a18e7b22ea43eb9195da2e082ba547ea4d3a90

Authored by unknown
1 parent b82a48d1

Pin Selected Issue

400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js
@@ -927,7 +927,6 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo @@ -927,7 +927,6 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo
927 c2: 'rgb(216, 216, 216)' 927 c2: 'rgb(216, 216, 216)'
928 }); 928 });
929 $('#' + canvasId).drawLine({ 929 $('#' + canvasId).drawLine({
930 -  
931 layer: true, 930 layer: true,
932 name: "Pin_" + PinId, 931 name: "Pin_" + PinId,
933 groups: ["Pin_" + PinId], 932 groups: ["Pin_" + PinId],
@@ -950,17 +949,9 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo @@ -950,17 +949,9 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo
950 radius: 5 * $scope.sliderPercentValue, 949 radius: 5 * $scope.sliderPercentValue,
951 950
952 click: function (clickedPin) { 951 click: function (clickedPin) {
953 - // alert('pin clciked = ' + clickedPin.name)  
954 - //change the head color to green  
955 - var radialAfterClick = $('#aaDetailViewCanvas').createGradient({  
956 - x1: 50, y1: 50,  
957 - x2: 50, y2: 50,  
958 - r1: 10, r2: 30,  
959 - c1: 'rgba(100, 50, 0,0)',  
960 - c2: 'rgb(126, 187, 83)'  
961 - });  
962 -  
963 - clickedPin.fillStyle = radialAfterClick; 952 + // alert('pin clciked = ' + clickedPin.name)
  953 +
  954 +
964 955
965 var pinID = (clickedPin.name).substring(7, (clickedPin.name).length); 956 var pinID = (clickedPin.name).substring(7, (clickedPin.name).length);
966 // alert('pinId: ' + pinID); 957 // alert('pinId: ' + pinID);
@@ -991,14 +982,47 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo @@ -991,14 +982,47 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo
991 } 982 }
992 983
993 var selectedPinData = new jinqJs() 984 var selectedPinData = new jinqJs()
994 - .from($scope.aaPinData) 985 + .from($scope.aaPinData)
995 .where("_PinId == " + pinID) 986 .where("_PinId == " + pinID)
996 .select(); 987 .select();
997 if (clickedPin.event.ctrlKey == true) { 988 if (clickedPin.event.ctrlKey == true) {
  989 +
  990 + var radialAfterClick = $('#aaDetailViewCanvas').createGradient({
  991 + x1: 50, y1: 50,
  992 + x2: 50, y2: 50,
  993 + r1: 10, r2: 30,
  994 + c1: 'rgba(100, 50, 0,0)',
  995 + c2: 'rgb(126, 187, 83)'
  996 + });
  997 +
  998 + clickedPin.fillStyle = radialAfterClick;
998 $scope.showAnnotation(selectedPinData, true, true, false); 999 $scope.showAnnotation(selectedPinData, true, true, false);
999 1000
1000 } 1001 }
1001 else { 1002 else {
  1003 + var radial = $('#aaDetailViewCanvas').createGradient({
  1004 + x1: 50, y1: 50,
  1005 + x2: 50, y2: 50,
  1006 + r1: 10, r2: 30,
  1007 + c1: 'rgba(100, 50, 0,0)',
  1008 + c2: 'rgb(216, 216, 216)'
  1009 + });
  1010 +
  1011 +
  1012 + $('#aaDetailViewCanvas').setLayers({
  1013 + fillStyle: radial,
  1014 + }).drawLayers();
  1015 +
  1016 + //change the head color to green
  1017 + var radialAfterClick = $('#aaDetailViewCanvas').createGradient({
  1018 + x1: 50, y1: 50,
  1019 + x2: 50, y2: 50,
  1020 + r1: 10, r2: 30,
  1021 + c1: 'rgba(100, 50, 0,0)',
  1022 + c2: 'rgb(126, 187, 83)'
  1023 + });
  1024 +
  1025 + clickedPin.fillStyle = radialAfterClick;
1002 $scope.showAnnotation(selectedPinData, false, true, false); 1026 $scope.showAnnotation(selectedPinData, false, true, false);
1003 1027
1004 } 1028 }