{"action":"created","issue":{"url":"https://api.github.com/repos/tombatossals/angular-openlayers-directive/issues/83","labels_url":"https://api.github.com/repos/tombatossals/angular-openlayers-directive/issues/83/labels{/name}","comments_url":"https://api.github.com/repos/tombatossals/angular-openlayers-directive/issues/83/comments","events_url":"https://api.github.com/repos/tombatossals/angular-openlayers-directive/issues/83/events","html_url":"https://github.com/tombatossals/angular-openlayers-directive/issues/83","id":65405155,"number":83,"title":"Setting an overlay dynamically in an Ionic app","user":{"login":"buecklers","id":6922726,"avatar_url":"https://avatars.githubusercontent.com/u/6922726?v=3","gravatar_id":"","url":"https://api.github.com/users/buecklers","html_url":"https://github.com/buecklers","followers_url":"https://api.github.com/users/buecklers/followers","following_url":"https://api.github.com/users/buecklers/following{/other_user}","gists_url":"https://api.github.com/users/buecklers/gists{/gist_id}","starred_url":"https://api.github.com/users/buecklers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/buecklers/subscriptions","organizations_url":"https://api.github.com/users/buecklers/orgs","repos_url":"https://api.github.com/users/buecklers/repos","events_url":"https://api.github.com/users/buecklers/events{/privacy}","received_events_url":"https://api.github.com/users/buecklers/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-03-31T09:13:13Z","updated_at":"2015-09-22T05:50:22Z","closed_at":null,"body":"Hi there!\r\n\r\nI'm creating an Ionic App and using the angular-openlayer-directive. So far it works but one problem still remains: On a click event on the map I fetch some properties of a feature and want to show them in an overlay. Depending on how I navigate (ui-route) to that view it works ... or not. A reload often helps. I even can see the overlay's html code in the page source but it is not visible.\r\nTo avoid race conditions, I added the html element in javascript not loading it from the html. I already spent a lot of time in that issue.\r\nDoes anybody have some experience in that frame work combination - angular, ionic, openlayers? I think you should.\r\nBest and thanks in advance.\r\nThomas"},"comment":{"url":"https://api.github.com/repos/tombatossals/angular-openlayers-directive/issues/comments/142186562","html_url":"https://github.com/tombatossals/angular-openlayers-directive/issues/83#issuecomment-142186562","issue_url":"https://api.github.com/repos/tombatossals/angular-openlayers-directive/issues/83","id":142186562,"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},"created_at":"2015-09-22T05:50:22Z","updated_at":"2015-09-22T05:50:22Z","body":"Yes, but before I might add a usefull tip, if you want to have some AnuglarJS code in your popup content then you will have to *compile* it like this:\r\n```javascript\r\n        var popupContent = $window.document.getElementById('popup-content');\r\n        // Update popup content\r\n        popupContent.innerHTML = html;\r\n        // As we have an angular directive in generated HTML we need to compile it\r\n        $compile(popupContent)($scope);\r\n```"}}