{ "id": "171271", "key": "MOD-2403", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10034", "key": "MOD", "name": "Appcelerator Modules", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2018-03-08T19:04:45.000+0000", "created": "2018-03-08T16:03:15.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [], "versions": [], "issuelinks": [], "assignee": null, "updated": "2018-03-09T09:14:49.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "13700", "name": "Map" } ], "description": "When adding a dotted polyline to Ti.Map it turns out dashed. \r\n\r\nSample code:\r\n{code}\r\n$.mapview.addPolyline(timap.createPolyline({\r\n points: [\r\n {\r\n latitude: 37.368122,\r\n longitude: -121.913653,\r\n },\r\n {\r\n latitude: 37.368122,\r\n longitude: -121.713653,\r\n },\r\n {\r\n latitude: 37.268122,\r\n longitude: -121.713653,\r\n }\r\n ],\r\n strokeColor: 'red',\r\n strokeWidth: 3,\r\n pattern: {\r\n type: Alloy.Globals.Map.POLYLINE_PATTERN_DOTTED,\r\n gapLength: 25\r\n }\r\n \r\n}));\r\n{code}\r\n\r\n*Observed behaviour*\r\nA dashed line, see attached screenshot\r\n\r\n*Expected behaviour*\r\n\r\nA dotted line, not a dashed line", "attachment": [ { "id": "64936", "filename": "Simulator Screen Shot - iPhone 8 - 2018-03-08 at 16.53.33.png", "author": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-03-08T15:56:51.000+0000", "size": 554395, "mimeType": "image/png" }, { "id": "64937", "filename": "Simulator Screen Shot - iPhone X - 2018-03-08 at 20.04.12.png", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-03-08T19:04:23.000+0000", "size": 98515, "mimeType": "image/png" } ], "flagged": false, "summary": "Ti.Map POLYLINE_PATTERN_DOTTED doesn't work", "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": "TiSDK 7.1.0.RC\r\nAlloy 1.11\r\niOS simulator", "closedSprints": [ { "id": 126, "state": "closed", "name": "2018 Sprint 05 SDK", "startDate": "2018-02-25T19:38:08.926Z", "endDate": "2018-03-11T18:38:00.000Z", "completeDate": "2018-03-11T22:06:01.520Z", "originBoardId": 100 } ], "comment": { "comments": [ { "id": "435397", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "[~topener] I found back my comment that I remembered today: https://github.com/appcelerator-modules/ti.map/pull/201#issuecomment-321645474", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-03-08T18:56:55.000+0000", "updated": "2018-03-08T18:56:55.000+0000" }, { "id": "435399", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Works fine:\r\n{code:js}\r\nvar Map = require('ti.map');\r\nvar win = Titanium.UI.createWindow();\r\n\r\nvar mapview = Map.createView({\r\n mapType: Map.NORMAL_TYPE,\r\n region: {\r\n latitude: 37.368122,\r\n longitude: -121.913653,\r\n }\r\n});\r\n\r\nmapview.addPolyline(Map.createPolyline({\r\n points: [{\r\n latitude: 37.368122,\r\n longitude: -121.913653,\r\n },\r\n {\r\n latitude: 37.368122,\r\n longitude: -121.713653,\r\n },\r\n {\r\n latitude: 37.268122,\r\n longitude: -121.713653,\r\n }\r\n ],\r\n strokeColor: 'red',\r\n strokeWidth: 3,\r\n pattern: {\r\n type: Map.POLYLINE_PATTERN_DOTTED,\r\n dashLength: 2,\r\n gapLength: 5\r\n }\r\n}))\r\n\r\nwin.add(mapview);\r\nwin.open();\r\n{code}\r\nProduces:\r\n !Simulator Screen Shot - iPhone X - 2018-03-08 at 20.04.12.png|thumbnail! \r\nIt's just depending on your configuration; and in your case, you ware missing the {{dashLength}}.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-03-08T19:04:28.000+0000", "updated": "2018-03-08T19:04:28.000+0000" }, { "id": "435415", "author": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "body": "[~hknoechel] thanks. I'll update the docs then! ", "updateAuthor": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-03-09T09:14:49.000+0000", "updated": "2018-03-09T09:14:49.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }