{ "id": "79632", "key": "TIMOB-5111", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2017-05-22T21:11:20.000+0000", "created": "2011-08-25T07:45:51.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "annotation", "iphone", "mapview", "mobile," ], "versions": [ { "id": "11570", "description": "", "name": "Release 1.7.2", "archived": true, "released": true, "releaseDate": "2011-07-21" } ], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-06-26T17:51:06.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "When an Annotation is added to a MapView and then immediately selected, the title of the annotation is truncated, as seen in the attached truncate.jpg image. Currently, you can work around this issue by using a setTimeout() call on selectAnnotation().\r\n\r\nCode to Reproduce:\r\n{code:Javascript}\r\nvar win= Titanium.UI.createWindow({ \r\n title:'weather',\r\n backgroundColor:'#fff'\r\n});\r\nwin.open({modal:true});\r\n\r\nvar anno = Ti.Map.createAnnotation({\r\n latitude:18.533333,\r\n longitude: 73.866667,\r\n title:\"Atlanta, GA\",\r\n subtitle:'Atlanta Braves Stadium',\r\n pincolor:Ti.Map.ANNOTATION_GREEN,\r\n animate:true,\r\n rightButton: Titanium.UI.iPhone.SystemButton.DISCLOSURE\r\n});\r\n \r\nvar mapview = Titanium.Map.createView({\r\n top:40,\r\n height:300,\r\n mapType: Titanium.Map.STANDARD_TYPE,\r\n animate:true,\r\n regionFit:true,\r\n userLocation:false,\r\n region:{latitude:18.533333,longitude: 73.866667, latitudeDelta:0.01, longitudeDelta:0.01},\r\n annotations:[anno]\r\n});\r\n \r\nwin.add(mapview);\r\nmapview.selectAnnotation(anno);\r\n//setTimeout(function() {mapview.selectAnnotation(anno);}, 500);\r\n{code}\r\n\r\nAgain, if you uncomment the setTimeout() call at the end (and comment the prior selectAnnotation() call), everything works as expected, as seen in the attached mapview.jpg image.", "attachment": [ { "id": "22675", "filename": "mapview.jpg", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-08-25T07:45:51.000+0000", "size": 21063, "mimeType": "image/jpeg" }, { "id": "22674", "filename": "truncate.jpg", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-08-25T07:45:51.000+0000", "size": 20235, "mimeType": "image/jpeg" } ], "flagged": false, "summary": "MapView Annotations show truncated title when selected immediately", "creator": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Mac OSX, iPhone sim 4.3", "comment": { "comments": [ { "id": "420156", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Resolving as cannot reproduce, tested with the following environment;\r\niPhone 7 (10.2)\r\nMacOS 10.11.6 (15G31)\r\nStudio 4.9.0.201705021158\r\nTi SDK 6.1.0.v20170519131839\r\nAppc NPM 4.2.9\r\nAppc CLI 6.2.1\r\nTi CLI 5.0.13\r\nAlloy 1.9.11\r\nArrow 2.0.0\r\nXcode 8.2 (8C38)\r\nNode v4.8.2\r\nJava 1.7.0_80", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-05-22T21:11:21.000+0000", "updated": "2017-05-22T21:11:21.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }