{ "id": "109442", "key": "TIMOB-12639", "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": [ { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" }, { "id": "15856", "description": "Release 3.2.1", "name": "Release 3.2.1", "archived": false, "released": true, "releaseDate": "2014-02-10" } ], "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": "2014-02-12T00:23:14.000+0000", "created": "2013-02-08T18:18:15.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "SupportTeam", "parity" ], "versions": [ { "id": "14613", "description": "Release 2.1.4", "name": "Release 2.1.4", "archived": true, "released": true, "releaseDate": "2012-11-12" }, { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" } ], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-02-12T00:23:14.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": "h6.Issue\r\nMapView click event is being fired multiple times in iOS only.\r\n\r\nh6.Runnable sample\r\nGrab & run code below. Console output log event multiple times. If you monitor through out DDMS the event will be fired only once.\r\n{code}\r\nvar thisView = Ti.UI.createView({\r\nwidth:45,\r\nheight:45\r\n});\r\n\r\nvar win = Ti.UI.createWindow();\r\n \r\nvar pin1 = Titanium.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:Titanium.Map.ANNOTATION_RED,\r\n animate:true,\r\n image: 'map-pin.png',\r\n pinImage:'map-pin.png',\r\n selectPinImage:'map-pin-selected.png'\r\n}); \r\n \r\nvar pin2 = Titanium.Map.createAnnotation({\r\n latitude: 31.390749,\r\n longitude:-121.081651,\r\n title:\"Other one\",\r\n subtitle:'Mountain View, CA',\r\n pincolor: Titanium.Map.ANNOTATION_RED,\r\n animate:true,\r\n image: 'map-pin.png',\r\n pinImage:'map-pin.png',\r\n selectPinImage:'map-pin-selected.png'\r\n}); \r\n \r\nvar pin3 = Titanium.Map.createAnnotation({\r\n latitude: 30.390749,\r\n longitude:-122.081651,\r\n title:\"Other one\",\r\n subtitle:'Mountain View, CA',\r\n pincolor: Titanium.Map.ANNOTATION_RED,\r\n animate:true,\r\n image: 'map-pin.png',\r\n pinImage:'map-pin.png',\r\n selectPinImage:'map-pin-selected.png'\r\n}); \r\n \r\nvar mapView = Titanium.Map.createView({\r\n mapType: Titanium.Map.STANDARD_TYPE,\r\n animate:true,\r\n regionFit:true,\r\n userLocation: false,\r\n annotations: [pin1, pin2, pin3]\r\n}); \r\n \r\nwin.add(mapView);\r\nwin.open();\r\n\r\nvar selectedPin = null;\r\n\r\nmapView.addEventListener('click', function(e) {\r\n\t\r\n\tif(e.clicksource === 'pin'){ \r\n\t\tTi.API.info(\" e.clicksource: \"+ e.clicksource);\r\n\t\te.annotation.setImage(e.annotation.selectPinImage);\r\n\t\tif(selectedPin){\r\n\t\t\tselectedPin.setImage(selectedPin.pinImage);\r\n\t\t\tselectedPin = e.annotation;\r\n\t\t} else {\r\n\t\t\tselectedPin = e.annotation;\r\n\t\t}\r\n\t}\r\n});\r\n{code}\r\n\r\nh6.Additional details\r\nThe developer need to test different approaches yet where this issue makes difficult click event functionality.", "attachment": [ { "id": "35489", "filename": "map-pin.png", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-02-08T18:18:15.000+0000", "size": 2457, "mimeType": "image/png" }, { "id": "35490", "filename": "map-pin-selected.png", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-02-08T18:18:15.000+0000", "size": 2241, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: Titanium.Map.View Click event fired multiple times", "creator": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "Titanium SDK 2.x & 3.x\r\niOS 6, 7.0\r\nAndroid 2.3", "comment": { "comments": [ { "id": "245911", "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-05T08:31:57.000+0000", "updated": "2013-04-05T08:31:57.000+0000" }, { "id": "292455", "author": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "body": "This issue can't be reproduced with TISDK 3.2 or higher. Therefore, marking it as resolved.", "updateAuthor": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-02-11T21:22:09.000+0000", "updated": "2014-02-11T21:22:46.000+0000" }, { "id": "292529", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing issue as cannot reproduce. Tested on:\r\n\r\nAppcelerator Studio, build: 3.2.1.201402061120\r\nSDK build: 3.2.1.GA\r\nCLI: 3.2.1\r\nAlloy: 1.3.1\r\nXcode: 5.0.2\r\nDevices: ipad air (7.0.3), iphone 4s (6.0.1)", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-02-12T00:23:14.000+0000", "updated": "2014-02-12T00:23:14.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }