{ "id": "154866", "key": "AC-1398", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "11", "description": "Is not a bug in our product", "name": "Not Our Bug" }, "resolutiondate": "2016-02-12T20:08:28.000+0000", "created": "2016-02-11T15:45:04.000+0000", "labels": [], "versions": [ { "id": "17035", "name": "Appcelerator Studio 4.4.0", "archived": false, "released": false } ], "issuelinks": [], "assignee": { "name": "rtlechuga", "key": "rtlechuga", "displayName": "Radamantis Torres-Lechuga", "active": false, "timeZone": "Asia/Dubai" }, "updated": "2016-03-08T07:37:49.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": "14551", "name": "Studio", "description": "Please enter tickets related to Titanium Studio here." }, { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "We have a developer who is using the Ti.Map Module to display a map with a route drawn onto it. On that route, there are annotation points that are clickable to bring up an option which can then be clicked. \r\n\r\nToday our developer noticed that the annotation click event it no longer firing and no code changes have been made. This issue is present on multiple devices which have various versions of iOS and which have not been updated recently. All we can figure is that it seems to be a service issue that is conflicting with the event because no code changes have been made.\r\n\r\nCode snippet below:\r\n\r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n\r\n////////////////////////////////////\r\n\"#mapview\": {\r\nmapType: Alloy.Globals.Map.HYBRID_TYPE,\r\n top: '50dp',\r\n width: Ti.UI.FILL,\r\n height: Ti.UI.FILL,\r\n animate: true,\r\n regionFit: true,\r\n userLocation: false,\r\n region: {\r\n latitude: 38.980279,\r\n longitude: -87.395528,\r\n latitudeDelta: 6.0, \r\n longitudeDelta: 6.0\r\n }\r\n}\r\n/////////////////////////////////////////////////////\r\nvar routePts = [];\r\nvar meterPts = [];\r\nvar csPts = [];\r\n\r\n$.mapview.addRoute(Alloy.Globals.Map.createRoute({\r\n name: 'myroute',\r\n width: 4.0,\r\n color: '#f00',\r\n points: routePts\r\n}));\r\n};\r\n\r\n//this is where the annotations are created\r\nmeterPts.push({\r\n drn: stDRN, \r\n mile_post: 0,\r\n role_id: stRole,\r\n latitude: lat,\r\n longitude:lon,\r\n title: stName,\r\n subtitle: ' Lat: ' + lat + ' Lon: ' + lon,\r\n animate: true,\r\n pincolor: Alloy.Globals.Map.ANNOTATION_GREEN,\r\n rightButton: Ti.UI.iPhone.SystemButton.CONTACT_ADD,\r\n image:stType\r\n});\r\n\r\n//Add annotations to the map\r\n$.mapview.addAnnotations(meterPts);\r\n\r\n\r\n\r\n\r\n/*\r\nvar routePoints = [\r\n{latitude:36.38, longitude:-86.190523},\r\n{latitude: 36.650986,longitude: -86.583497},\r\n{latitude: 38.980279,longitude: -87.395528},\r\n{latitude: 39.6149953,longitude: -87.6857934},\r\n{latitude: 39.9262,longitude: -87.7077},\r\n{latitude:40.261635, longitude:-87.821192},\r\n{latitude: 40.767755,longitude: -87.9447189},\r\n{latitude:41.462750, longitude:-88.176884}\r\n];\r\n\r\n$.mapview.addRoute(Alloy.Globals.Map.createRoute({\r\nname: 'myroute',\r\nwidth: 3.5,\r\ncolor: '#f00',\r\npoints: routePoints\r\n}));\r\n*/\r\n \r\nfunction report(evt){\r\n if ( evt.clicksource == 'rightButton') {\r\n var drn_nb = evt.annotation.drn;\r\n var title = evt.annotation.title;\r\n var mile_post = evt.annotation.mile_post;\r\n var role_id = evt.annotation.role_id;\r\n var company = 'MGT';\r\n \r\n var pipeline_data = {'company':company, 'drn_nb':drn_nb, 'drn_name':title, 'mile_post':mile_post, 'role_id':role_id};\r\n \r\n var locationDetail = Alloy.createController('locationDetail', pipeline_data).getView();\r\n $.mgt.open(locationDetail);\r\n}\r\n }\r\n};\r\n", "attachment": [], "flagged": false, "summary": "Ti.Map Module Annotation Click Event Not Firing", "creator": { "name": "TaylorThompson", "key": "taylorthompson", "displayName": "Taylor Thompson", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "TaylorThompson", "key": "taylorthompson", "displayName": "Taylor Thompson", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "MacOSX, Appcelerator Studio, ", "comment": { "comments": [ { "id": "376673", "author": { "name": "TaylorThompson", "key": "taylorthompson", "displayName": "Taylor Thompson", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This can now be closed, the issue has been resolved. It was due to an internal web service change that was made without our knowledge.", "updateAuthor": { "name": "TaylorThompson", "key": "taylorthompson", "displayName": "Taylor Thompson", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-02-11T22:11:37.000+0000", "updated": "2016-02-11T22:11:37.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }