{"action":"created","issue":{"url":"https://api.github.com/repos/EddyVerbruggen/nativescript-mapbox/issues/154","repository_url":"https://api.github.com/repos/EddyVerbruggen/nativescript-mapbox","labels_url":"https://api.github.com/repos/EddyVerbruggen/nativescript-mapbox/issues/154/labels{/name}","comments_url":"https://api.github.com/repos/EddyVerbruggen/nativescript-mapbox/issues/154/comments","events_url":"https://api.github.com/repos/EddyVerbruggen/nativescript-mapbox/issues/154/events","html_url":"https://github.com/EddyVerbruggen/nativescript-mapbox/issues/154","id":250167281,"number":154,"title":"Polylines on iOS","user":{"login":"d3mac123","id":229148,"avatar_url":"https://avatars0.githubusercontent.com/u/229148?v=4","gravatar_id":"","url":"https://api.github.com/users/d3mac123","html_url":"https://github.com/d3mac123","followers_url":"https://api.github.com/users/d3mac123/followers","following_url":"https://api.github.com/users/d3mac123/following{/other_user}","gists_url":"https://api.github.com/users/d3mac123/gists{/gist_id}","starred_url":"https://api.github.com/users/d3mac123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/d3mac123/subscriptions","organizations_url":"https://api.github.com/users/d3mac123/orgs","repos_url":"https://api.github.com/users/d3mac123/repos","events_url":"https://api.github.com/users/d3mac123/events{/privacy}","received_events_url":"https://api.github.com/users/d3mac123/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2017-08-14T22:03:00Z","updated_at":"2017-08-15T13:46:53Z","closed_at":null,"body":"This is a strange situation on iOS. Running this code, does NOT show any lines (I have tried both options below):\r\n```\r\nfunction onMapReady(args) {\r\n   map = args.map;\r\n   //delete previous routes\r\n   map.removePolylines();\r\n\r\n   var abc = [{lat:26.058587,lng:-80.2764915},{lat:26.061879,lng:-80.273255}]\r\n/*\r\n   args.map.addPolyline({\r\n        id: 100, // optional, can be used in 'removePolylines'\r\n        color: '#30BCFF', // Set the color of the line (default black)\r\n        width: 3, //Set the width of the line (default 5),\r\n        opacity: 1,\r\n        points: [\r\n            {\r\n              'lat': 26.058587,\r\n              'lng': -80.2764915\r\n            },\r\n            {\r\n              'lat': 26.061879,\r\n              'lng': -80.273255\r\n            }\r\n        ]\r\n    });\r\n*/\r\n    map.addPolyline({\r\n        id: 100, // optional, can be used in 'removePolylines'\r\n        color: '#3F5CFF', // Set the color of the line (default black)\r\n        width: 5, //Set the width of the line (default 5)\r\n        points: JSON.parse(JSON.stringify(abc))\r\n    });\r\n```\r\n\r\nHowever, in another page, loading all data points into a table/array, shows the line:\r\n```\r\nmap.addPolyline({\r\n    id: 1, // optional, can be used in 'removePolylines'\r\n    color: '#30BCFF', // Set the color of the line (default black)\r\n    width: 5, //Set the width of the line (default 5)\r\n    points: JSON.parse(JSON.stringify(flightData))\r\n});\r\n```\r\n\r\nAny ideas why?"},"comment":{"url":"https://api.github.com/repos/EddyVerbruggen/nativescript-mapbox/issues/comments/322470081","html_url":"https://github.com/EddyVerbruggen/nativescript-mapbox/issues/154#issuecomment-322470081","issue_url":"https://api.github.com/repos/EddyVerbruggen/nativescript-mapbox/issues/154","id":322470081,"user":{"login":"d3mac123","id":229148,"avatar_url":"https://avatars0.githubusercontent.com/u/229148?v=4","gravatar_id":"","url":"https://api.github.com/users/d3mac123","html_url":"https://github.com/d3mac123","followers_url":"https://api.github.com/users/d3mac123/followers","following_url":"https://api.github.com/users/d3mac123/following{/other_user}","gists_url":"https://api.github.com/users/d3mac123/gists{/gist_id}","starred_url":"https://api.github.com/users/d3mac123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/d3mac123/subscriptions","organizations_url":"https://api.github.com/users/d3mac123/orgs","repos_url":"https://api.github.com/users/d3mac123/repos","events_url":"https://api.github.com/users/d3mac123/events{/privacy}","received_events_url":"https://api.github.com/users/d3mac123/received_events","type":"User","site_admin":false},"created_at":"2017-08-15T13:46:53Z","updated_at":"2017-08-15T13:46:53Z","body":"No worries then. I will keep looking. I was just wondering if you could find something in the onMapReady function in the dash_live-page."}}
{"actor":{"display_login":"d3mac123"}}