{"action":"opened","issue":{"url":"https://api.github.com/repos/SebastianM/angular-google-maps/issues/1557","repository_url":"https://api.github.com/repos/SebastianM/angular-google-maps","labels_url":"https://api.github.com/repos/SebastianM/angular-google-maps/issues/1557/labels{/name}","comments_url":"https://api.github.com/repos/SebastianM/angular-google-maps/issues/1557/comments","events_url":"https://api.github.com/repos/SebastianM/angular-google-maps/issues/1557/events","html_url":"https://github.com/SebastianM/angular-google-maps/issues/1557","id":388040203,"node_id":"MDU6SXNzdWUzODgwNDAyMDM=","number":1557,"title":"Map does not show markers using *ngFor","user":{"login":"universesurfer","id":22943643,"node_id":"MDQ6VXNlcjIyOTQzNjQz","avatar_url":"https://avatars3.githubusercontent.com/u/22943643?v=4","gravatar_id":"","url":"https://api.github.com/users/universesurfer","html_url":"https://github.com/universesurfer","followers_url":"https://api.github.com/users/universesurfer/followers","following_url":"https://api.github.com/users/universesurfer/following{/other_user}","gists_url":"https://api.github.com/users/universesurfer/gists{/gist_id}","starred_url":"https://api.github.com/users/universesurfer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/universesurfer/subscriptions","organizations_url":"https://api.github.com/users/universesurfer/orgs","repos_url":"https://api.github.com/users/universesurfer/repos","events_url":"https://api.github.com/users/universesurfer/events{/privacy}","received_events_url":"https://api.github.com/users/universesurfer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-06T03:21:00Z","updated_at":"2018-12-06T03:21:00Z","closed_at":null,"author_association":"NONE","body":"**Issue description**\r\nMap does not display markers using *ngFor loop, despite coordinates being of type number\r\n\r\n**Steps to reproduce and a minimal demo of the problem**\r\n\r\n1.0.0-beta.5\r\n```\r\n//This works\r\n<agm-map [zoom]='12' [latitude]=\"latitude\" [longitude]=\"longitude\">\r\n   <agm-marker [latitude]=\"latitude\" [longitude]=\"longitude\"></agm-marker>\r\n </agm-map>\r\n\r\n//This doesn't work\r\n<agm-map [zoom]='12' [latitude]=\"latitude\" [longitude]=\"longitude\">\r\n   <agm-marker *ngFor=\"let location of locations; let i = index\" [latitude]=\"location.lat\" [longitude]=\"location.lng\"></agm-marker>\r\n </agm-map>\r\n```\r\nPeople have experienced similar issues on StackOverflow, and the common issue is that their coordinates needed to be typecast to numbers from strings.\r\n\r\nHowever, my API returns numbers, and even after typecasting them again in my component, they still do not appear on the map, which has me wondering if this is a bug.\r\n\r\nI've imported the AgmCoreModule in my component, and in my app.module.\r\n\r\n**Current behavior**\r\nHard-coded coordinates will display a marker on the map.  However, using *ngFor to loop through an array of objects containing coordinates does not display anything.\r\n\r\n**Expected/desired behavior**\r\nThe map should display all markers from an array of coordinates.\r\n\r\n**angular2 & angular-google-maps version**\r\n1.0.0-beta.5\r\n\r\n**Other information**"}}
{"actor":{"display_login":"universesurfer"}}