{ "id": "87297", "key": "TIMOB-7869", "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": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2017-07-27T22:25:34.000+0000", "created": "2012-03-02T15:14:40.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "parity" ], "versions": [ { "id": "12677", "description": "Release 1.8 Service Pack 1", "name": "Release 1.8.1", "archived": true, "released": true, "releaseDate": "2012-01-31" }, { "id": "13070", "description": "Release 1.8 Service Pack 2", "name": "Release 1.8.2", "archived": true, "released": true, "releaseDate": "2012-02-29" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" } ], "issuelinks": [ { "id": "15518", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "87296", "key": "TIMOB-7868", "fields": { "summary": "iOS: change map annotation to fire event when the annotation pin is clicked", "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" } }, "priority": { "name": "Low", "id": "4" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-07-27T22:25:34.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 the title or subtitles are clicked on an annotation, the annotation is closed. This does not happen on Android. Parity.\r\n\r\nSteps to Reproduce:\r\n\r\n1. Run code.\r\n\r\n{code:title=app.js}\r\nvar win = Ti.UI.createWindow();\r\n\r\nvar atlantaParams = {\r\n\tlatitude:33.74511,\r\n\tlongitude:-84.38993,\r\n\ttitle:\"Atlanta, GA\",\r\n\tsubtitle:'Atlanta Braves Stadium\\nfoo',\r\n\tanimate:true,\r\n\trightButton: Titanium.UI.iPhone.SystemButton.DISCLOSURE,\r\n\tmyid:3 // CUSTOM ATTRIBUTE THAT IS PASSED INTO EVENT OBJECTS\r\n};\r\n\r\natlantaParams.pincolor = Titanium.Map.ANNOTATION_PURPLE;\r\n\r\nvar atlanta = Titanium.Map.createAnnotation(atlantaParams);\r\n\r\nvar mapview = Titanium.Map.createView({\r\n\tmapType: Titanium.Map.STANDARD_TYPE,\r\n\tregion:{latitude:33.74511, longitude:-84.38993, latitudeDelta:0.5, longitudeDelta:0.5},\r\n\tanimate:true,\r\n\tregionFit:true,\r\n\tuserLocation:true,\r\n\tannotations:[atlanta]\r\n});\r\n\r\nmapview.addEventListener(\"click\", function(e) {\r\n\tvar info = '\\n';\r\n\t\r\n\tinfo += 'type: ' + e.type + '\\n';\r\n\tinfo += 'clicksource: ' + e.clicksource + '\\n';\r\n\tinfo += 'title: ' + e.title + '\\n';\r\n\tinfo += 'index: ' + e.index + '\\n';\r\n\tinfo += 'annotation: ' + e.annotation + '\\n';\r\n\tinfo += 'map: ' + e.map + '\\n';\r\n\tinfo += 'source: ' + e.source + '\\n';\r\n\t\r\n\tTi.API.info(info);\r\n\talert(info);\r\n});\r\n\r\nmapview.addAnnotation(atlanta);\r\n\r\nwin.add(mapview);\r\n\r\nwin.open();\r\n{code}\r\n\r\n2. Click pin to open annotation. Close event alert.\r\n3. Click title or subtitle. Close event alert.\r\n\r\nExpected Result:\r\n\r\nAnnotation should stay open.\r\n\r\nActual Result:\r\n\r\nAnnotation closes. On Android it stays open. Parity.", "attachment": [], "flagged": false, "summary": "iOS: Titanium.Map.Annotation: when title or subtitle is clicked, annotation closes", "creator": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "SDK: 1.8.2 githash=59b3a90s, 2.0.0.v20120301093149\r\nStudio: 2.0.0.201202291457\r\nOS: Snow Leopard\r\nDevices Tested: iPod 4.3.3, iPhone Simulator 5.0", "comment": { "comments": [ { "id": "245694", "author": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Issue reproduces \n\nTested with\n\nTitanium Studio, build: 3.0.1.201212181159\nTitanium SDK version: 3.1.0 \nTitanium SDK version: 3.0.2 \niOS iPhone Simulator: iOS SDK version: 6.0", "updateAuthor": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-04T11:35:29.000+0000", "updated": "2013-04-04T11:35:29.000+0000" }, { "id": "425002", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing due to inactivity. If this issue still exists, please raise a new ticket.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-07-27T22:25:34.000+0000", "updated": "2017-07-27T22:25:34.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }