{ "id": "122518", "key": "TIMOB-15873", "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-11-15T10:34:04.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "annotation", "map" ], "versions": [], "issuelinks": [], "assignee": null, "updated": "2018-02-28T20:03:58.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{code}\r\nvar a = Ti.Map.createAnnotation({ ... });\r\n\r\nannotation.rightView = Ti.UI.createView({ ... });\r\n// async code to populate the view\r\n\r\na.addEventListener(\"click\", function(e) { Ti.API.warn(\"ANNO clicked!\"); });\r\nmapView.addAnnotation(a);\r\n\r\nmapView.addEventListener(\"click\", function(e) { Ti.API.warn(\"MAP clicked!\"); });\r\n\r\n{code} \r\n\r\nThis code will not trigger click event on pin touch and the annotation will never open.\r\nAdding title (non empty value) will work as expected (annotation showing up).\r\n{code}\r\nannotation.setTitle(\" \")\r\n{code}\r\n\r\n(from http://developer.appcelerator.com/question/159509/iphone-map-annotation-click-not-working)", "attachment": [], "flagged": false, "summary": "ios annotation not showing up if title is not set", "creator": { "name": "lcapra", "key": "lcapra", "displayName": "luca capra", "active": true, "timeZone": "Europe/Rome" }, "subtasks": [], "reporter": { "name": "lcapra", "key": "lcapra", "displayName": "luca capra", "active": true, "timeZone": "Europe/Rome" }, "environment": "Alloy 1.3\r\nSDK 3.2 11/11/2013\r\nIphone 4 (os 7.0.3)", "comment": { "comments": [ { "id": "280491", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "Hello Luca!\r\n\r\nPlease provide a full testcase so we can move this one to platform. \r\n\r\nTIA!\r\n\r\nBest,\r\nMauro ", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2013-11-21T02:59:24.000+0000", "updated": "2013-11-21T02:59:24.000+0000" }, { "id": "280520", "author": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "body": "This issue is reproducible with test code pasted below. Annotation is showing but ‘click’ event is not firing.\r\n\r\nh5. My testing environment follows: \r\n\r\nOS: MAC OS X 10.8.5\r\n \r\nTi SDK: 3.1.3 GA \r\nTi CLI: 3.2.0\r\nIOS simulator 7.0\r\n\r\nh5. My test code \r\n{code:javascript}\r\nvar win = Ti.UI.createWindow();\r\n\r\nvar mountainView = Titanium.Map.createAnnotation({\r\n\tlatitude : 37.390749,\r\n\tlongitude : -122.081651, \r\n\tsubtitle : 'Mountain View, CA',\r\n\tpincolor : Titanium.Map.ANNOTATION_RED,\r\n\tanimate : true,\r\n\tleftButton : '/images/appcelerator_small.png',\r\n\t });\r\n\r\nvar mapview = Titanium.Map.createView({\r\n\tmapType : Titanium.Map.STANDARD_TYPE,\r\n\tregion : {\r\n\t\tlatitude : 37.390749,\r\n\t\tlongitude : -122.081651,\r\n\t\tlatitudeDelta : 0.04,\r\n\t\tlongitudeDelta : 0.04\r\n\t},\r\n\tanimate : true,\r\n\tregionFit : true,\r\n\tuserLocation : true,\r\n\tannotations : [mountainView]\r\n});\r\n\r\nwin.add(mapview);\r\n// Handle click events on any annotations on this map.\r\nmountainView.addEventListener('click', function(evt) {\r\n\r\n\tTi.API.info(\"Annotation \" + evt.title + \" clicked, id: \" + evt.annotation.myid);\r\n\r\n\talert(evt.clicksource);\r\n\r\n\t// Check for all of the possible names that clicksouce\r\n\t// can report for the left button/view.\r\n\tif (evt.clicksource == 'leftButton' || evt.clicksource == 'leftPane' || evt.clicksource == 'leftView') {\r\n\t\tTi.API.info(\"Annotation \" + evt.title + \", left button clicked.\");\r\n\t}\r\n});\r\n\r\nwin.open();\r\n{code} \r\n\r\n \r\n\r\nh5. Step to reproduces\r\n1.\tCreate a new project\r\n2.\tPaste test code in app.js\r\n3.\tNow run on iOS 7 with simulator 7.0 \r\n4.\tClick on annotation \r\n5.\tEvent will not fired \r\n\r\n \r\n\r\nThanks\r\n", "updateAuthor": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-11-21T10:59:53.000+0000", "updated": "2013-12-04T06:03:16.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }