{ "id": "171240", "key": "ALOY-1608", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "11113", "key": "ALOY", "name": "Alloy", "projectCategory": { "id": "10400", "description": "Tools for developing applications", "name": "Tooling" } }, "fixVersions": [], "resolution": null, "resolutiondate": null, "created": "2018-03-05T17:25:28.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [], "versions": [ { "id": "18166", "name": "Release 7.0.0", "archived": false, "released": true } ], "issuelinks": [], "assignee": { "name": "batman", "key": "batman", "displayName": "Bruce Wayne", "active": true, "timeZone": "America/New_York" }, "updated": "2018-03-06T12:16:07.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "12332", "name": "Titanium SDK", "description": "Any integration or issues with the TiSDK" } ], "description": "When adding a circle to ti.map using Alloy the code generated/compiled is incorrect as it calls the wrong method to add a circle to the map.\r\n\r\nSample XML:\r\n{code}\r\n \t\r\n \t \r\n \t\t\r\n \t\t\r\n \t\t\r\n \t\t\r\n \t\r\n{code}\r\n\r\nThe same result was using \r\n{code}\r\n\r\n{code}\r\n\r\nThis is compiled into \r\n{code}\r\n\r\n $.__views.mapCircle = (require(\"ti.map\").createCircle || Ti.UI.createCircle)({\r\n center : {\r\n latitude : 37.368122,\r\n longitude : -122.213653\r\n },\r\n radius : 500,\r\n fillColor : \"#ff0000\",\r\n strokeColor : \"#000000\",\r\n strokeWidth : 2,\r\n annotations : __alloyId196,\r\n id : \"mapCircle\"\r\n });\r\n\r\n $.__views.mapview.add($.__views.mapCircle); \r\n{code}\r\n\r\nThere are 2 problems:\r\n\r\n1) annotations shouldn't be added to the view\r\n2) circle should be added to the map using addCircle\r\n\r\n*This problem also exists with other methods, like polygons, polylines and routes.*\r\n\r\n*Expected result*\r\nCompiled code should use the addCircle/addPolygon/addRoute methods.\r\n\r\n*Or!* circles, polygons polycircles and annotations should be added-able by using the _add()_ method.", "attachment": [], "flagged": false, "summary": "Not possible to add elements on ti.map through alloy", "creator": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Alloy CLI 1.11.0\r\nAppc CLI 7.0.2\r\nMacOS: 10.12.6\r\nSDK 7.1.0.RC", "comment": { "comments": [], "maxResults": 0, "total": 0, "startAt": 0 } } }