{ "id": "120040", "key": "TIMOB-16228", "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": null, "resolutiondate": null, "created": "2013-09-17T08:22:04.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "android", "ios", "map", "mapsv2", "mapv2" ], "versions": [], "issuelinks": [], "assignee": null, "updated": "2018-02-28T20:03:13.000+0000", "status": { "description": "This issue was once resolved, but the resolution was deemed incorrect. From here issues are either marked assigned or resolved.", "name": "Reopened", "id": "4", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "The selectAnnotation method doesn't work before the complete event - see code below. Please fix or document this behavior.\r\n\r\nindex.xml:\r\n{code}\r\n\r\n \r\n \r\n \r\n \r\n\r\n{code}\r\n\r\nindex.tss:\r\n{code}\r\n\"#mapview\": {\r\n\tmapType: Alloy.Globals.Map.NORMAL_TYPE,\r\n\tanimate:true,\r\n\tregionFit:true,\r\n\tuserLocation:true\r\n}\r\n{code}\r\n\r\nindex.js:\r\n{code}\r\n// API calls to the map module need to use the Alloy.Globals.Map reference\r\nvar mountainView = Alloy.Globals.Map.createAnnotation({\r\n latitude:37.390749,\r\n longitude:-122.081651,\r\n title:\"Appcelerator Headquarters\",\r\n subtitle:'Mountain View, CA',\r\n pincolor:Alloy.Globals.Map.ANNOTATION_RED\r\n});\r\n\r\n$.mapview.region = {latitude:37.390749, longitude:-122.081651,\r\n latitudeDelta:0.05, longitudeDelta:0.05};\r\n$.mapview.addAnnotation(mountainView);\r\n$.mapview.selectAnnotation(mountainView); // DOES NOT WORK\r\n/* Uncomment this to make it work\r\n$.mapview.addEventListener('complete', function() {\r\n\t$.mapview.selectAnnotation(mountainView);\r\n});\r\n*/\r\n$.index.open();\r\n{code}\r\n\r\nalloy.js:\r\n{code}\r\nif (OS_ANDROID){\r\n\tAlloy.Globals.Map = require('ti.map');\r\n}\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: Maps V2 selectAnnotation doesn't work before map complete event", "creator": { "name": "mokesmokes", "key": "mokesmokes", "displayName": "Mark Mokryn", "active": true, "timeZone": "Asia/Jerusalem" }, "subtasks": [], "reporter": { "name": "mokesmokes", "key": "mokesmokes", "displayName": "Mark Mokryn", "active": true, "timeZone": "Asia/Jerusalem" }, "environment": "3.2.0.GA", "comment": { "comments": [ { "id": "271668", "author": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Hello Mark M,\r\n\r\nI tested your code. selectAnnotation method working for both case. So I cant reproduce your issue. If you are fetching this issue again please re-open this bug. \r\nThanks \r\n", "updateAuthor": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2013-09-18T05:32:24.000+0000", "updated": "2013-09-18T05:32:24.000+0000" }, { "id": "271672", "author": { "name": "mokesmokes", "key": "mokesmokes", "displayName": "Mark Mokryn", "active": true, "timeZone": "Asia/Jerusalem" }, "body": "I'm not the only one seeing this issue:\nhttp://developer.appcelerator.com/question/156013/selectannotation-on-google-map-v2----android\nFor me it occurred on two Nexus S devices - one running 4.1.2 and the other 2.3.6", "updateAuthor": { "name": "mokesmokes", "key": "mokesmokes", "displayName": "Mark Mokryn", "active": true, "timeZone": "Asia/Jerusalem" }, "created": "2013-09-18T06:03:56.000+0000", "updated": "2013-09-18T06:03:56.000+0000" }, { "id": "285632", "author": { "name": "mokesmokes", "key": "mokesmokes", "displayName": "Mark Mokryn", "active": true, "timeZone": "Asia/Jerusalem" }, "body": "This issue still exists, and now that iOS has also been transitioned to the map module in 3.2.0 it occurs on iOS as well. selectAnnotation is not reliable - sometimes opens the full annotation and sometimes not.", "updateAuthor": { "name": "mokesmokes", "key": "mokesmokes", "displayName": "Mark Mokryn", "active": true, "timeZone": "Asia/Jerusalem" }, "created": "2013-12-23T13:34:09.000+0000", "updated": "2013-12-23T13:34:09.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }