{"action":"closed","issue":{"url":"https://api.github.com/repos/tombatossals/angular-leaflet-directive/issues/251","labels_url":"https://api.github.com/repos/tombatossals/angular-leaflet-directive/issues/251/labels{/name}","comments_url":"https://api.github.com/repos/tombatossals/angular-leaflet-directive/issues/251/comments","events_url":"https://api.github.com/repos/tombatossals/angular-leaflet-directive/issues/251/events","html_url":"https://github.com/tombatossals/angular-leaflet-directive/issues/251","id":25680701,"number":251,"title":"Can you change/update an overlay's opacity from angular?","user":{"login":"nickponline","id":590151,"avatar_url":"https://avatars.githubusercontent.com/u/590151?v=3","gravatar_id":"","url":"https://api.github.com/users/nickponline","html_url":"https://github.com/nickponline","followers_url":"https://api.github.com/users/nickponline/followers","following_url":"https://api.github.com/users/nickponline/following{/other_user}","gists_url":"https://api.github.com/users/nickponline/gists{/gist_id}","starred_url":"https://api.github.com/users/nickponline/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickponline/subscriptions","organizations_url":"https://api.github.com/users/nickponline/orgs","repos_url":"https://api.github.com/users/nickponline/repos","events_url":"https://api.github.com/users/nickponline/events{/privacy}","received_events_url":"https://api.github.com/users/nickponline/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/tombatossals/angular-leaflet-directive/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/tombatossals/angular-leaflet-directive/milestones/3","html_url":"https://github.com/tombatossals/angular-leaflet-directive/milestones/0.8.8","labels_url":"https://api.github.com/repos/tombatossals/angular-leaflet-directive/milestones/3/labels","id":1229495,"number":3,"title":"0.8.8","description":"","creator":{"login":"nmccready","id":583593,"avatar_url":"https://avatars.githubusercontent.com/u/583593?v=3","gravatar_id":"","url":"https://api.github.com/users/nmccready","html_url":"https://github.com/nmccready","followers_url":"https://api.github.com/users/nmccready/followers","following_url":"https://api.github.com/users/nmccready/following{/other_user}","gists_url":"https://api.github.com/users/nmccready/gists{/gist_id}","starred_url":"https://api.github.com/users/nmccready/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nmccready/subscriptions","organizations_url":"https://api.github.com/users/nmccready/orgs","repos_url":"https://api.github.com/users/nmccready/repos","events_url":"https://api.github.com/users/nmccready/events{/privacy}","received_events_url":"https://api.github.com/users/nmccready/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":2,"state":"open","created_at":"2015-07-28T14:15:51Z","updated_at":"2015-09-01T19:16:59Z","due_on":"2016-08-14T04:00:00Z","closed_at":null},"comments":11,"created_at":"2014-01-15T20:51:08Z","updated_at":"2015-09-01T19:16:59Z","closed_at":"2015-09-01T19:16:59Z","body":"I tried adding a button to my controller\r\n\r\n$scope.onClick = function() {\r\n $scope.layers.overlays.myOverlay.layerOptions.opacity = 0.5;\r\n}\r\n\r\nAlthough the value changes, the new opacity does not reflect on the map."}}