{"action":"opened","issue":{"url":"https://api.github.com/repos/angular-ui/ui-leaflet/issues/206","labels_url":"https://api.github.com/repos/angular-ui/ui-leaflet/issues/206/labels{/name}","comments_url":"https://api.github.com/repos/angular-ui/ui-leaflet/issues/206/comments","events_url":"https://api.github.com/repos/angular-ui/ui-leaflet/issues/206/events","html_url":"https://github.com/angular-ui/ui-leaflet/issues/206","id":123278657,"number":206,"title":"Marker clustering and controller reset","user":{"login":"claustres","id":2647117,"avatar_url":"https://avatars.githubusercontent.com/u/2647117?v=3","gravatar_id":"","url":"https://api.github.com/users/claustres","html_url":"https://github.com/claustres","followers_url":"https://api.github.com/users/claustres/followers","following_url":"https://api.github.com/users/claustres/following{/other_user}","gists_url":"https://api.github.com/users/claustres/gists{/gist_id}","starred_url":"https://api.github.com/users/claustres/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/claustres/subscriptions","organizations_url":"https://api.github.com/users/claustres/orgs","repos_url":"https://api.github.com/users/claustres/repos","events_url":"https://api.github.com/users/claustres/events{/privacy}","received_events_url":"https://api.github.com/users/claustres/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-21T13:20:55Z","updated_at":"2015-12-21T13:20:55Z","closed_at":null,"body":"I use the directive in a big single page application where the navigation between the pages is handled using angular ui-router, so the controllers are destoyed/created each time. I noticed that my markers were correctly loaded on the first map page visualisation but not on the subsequent page visualisations.\r\n\r\nIt seems that it is related to clustering. Indeed I add a 'group' property to my markers to create different clusters. Removing this property solved my issue. I suspect some data structures are not correctly cleaned when destroying the scope using marker clustering.\r\n\r\nI started to jump into the source code trying to fix it but I raise this issue waiting to be more comfortable with the directive source code...\r\n"}}