{"action":"created","issue":{"url":"https://api.github.com/repos/tombatossals/angular-leaflet-directive/issues/849","labels_url":"https://api.github.com/repos/tombatossals/angular-leaflet-directive/issues/849/labels{/name}","comments_url":"https://api.github.com/repos/tombatossals/angular-leaflet-directive/issues/849/comments","events_url":"https://api.github.com/repos/tombatossals/angular-leaflet-directive/issues/849/events","html_url":"https://github.com/tombatossals/angular-leaflet-directive/issues/849","id":93941177,"number":849,"title":"routing-machine-feature-503 refresh map problem","user":{"login":"matalaa","id":6710405,"avatar_url":"https://avatars.githubusercontent.com/u/6710405?v=3","gravatar_id":"","url":"https://api.github.com/users/matalaa","html_url":"https://github.com/matalaa","followers_url":"https://api.github.com/users/matalaa/followers","following_url":"https://api.github.com/users/matalaa/following{/other_user}","gists_url":"https://api.github.com/users/matalaa/gists{/gist_id}","starred_url":"https://api.github.com/users/matalaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matalaa/subscriptions","organizations_url":"https://api.github.com/users/matalaa/orgs","repos_url":"https://api.github.com/users/matalaa/repos","events_url":"https://api.github.com/users/matalaa/events{/privacy}","received_events_url":"https://api.github.com/users/matalaa/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-07-09T03:00:02Z","updated_at":"2015-11-04T07:12:12Z","closed_at":"2015-11-04T07:12:12Z","body":"Hi,\r\n\r\nThanks for your code on branch routing-machine-feature-503 I was able to trace a route on load \r\n\r\nHowever I have a button that should trigger the trace route on demand but its not refreshing the view, eventhough the scope contains the newly added points\r\n\r\nin my controller I declare the mapControls\r\n`$scope.mapControls = {\r\n        routingMachine: {\r\n           waypoints: []\r\n         }\r\n    };`\r\n\r\nthen I add the points on click event, or here on timeout event for the sake of the test\r\n\r\n`$timeout(function() {\r\n        $scope.mapControls.routingMachine.waypoints.push(L.latLng(-22.2682246, 166.4422263));\r\n        $scope.mapControls.routingMachine.waypoints.push(L.latLng(-22.268562, 166.438407));\r\n    }, 3000)`\r\n\r\n\r\nbut the map is not being refreshed\r\n\r\n\r\n`<leaflet id=\"map\" center=\"mapCenter\" markers=\"markers\" controls=\"mapControls\" height=\"450px\" width=\"100%\"></leaflet>`"},"comment":{"url":"https://api.github.com/repos/tombatossals/angular-leaflet-directive/issues/comments/153610785","html_url":"https://github.com/tombatossals/angular-leaflet-directive/issues/849#issuecomment-153610785","issue_url":"https://api.github.com/repos/tombatossals/angular-leaflet-directive/issues/849","id":153610785,"user":{"login":"tombatossals","id":124169,"avatar_url":"https://avatars.githubusercontent.com/u/124169?v=3","gravatar_id":"","url":"https://api.github.com/users/tombatossals","html_url":"https://github.com/tombatossals","followers_url":"https://api.github.com/users/tombatossals/followers","following_url":"https://api.github.com/users/tombatossals/following{/other_user}","gists_url":"https://api.github.com/users/tombatossals/gists{/gist_id}","starred_url":"https://api.github.com/users/tombatossals/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tombatossals/subscriptions","organizations_url":"https://api.github.com/users/tombatossals/orgs","repos_url":"https://api.github.com/users/tombatossals/repos","events_url":"https://api.github.com/users/tombatossals/events{/privacy}","received_events_url":"https://api.github.com/users/tombatossals/received_events","type":"User","site_admin":false},"created_at":"2015-11-04T07:12:12Z","updated_at":"2015-11-04T07:12:12Z","body":"I'm going to rework&redesign angular-leaflet-directive to be compatible with Leaflet v1.0. It will mantain almost all its functionality, and will be compatible with the current features of the directive, but I must start from a fresh point, so I'm going to close this issue. If you think it must be worked with the new version, please reopen it."}}