{ "id": "109165", "key": "TIMOB-12582", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "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": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "15272", "description": "2013 Sprint 04 API", "name": "2013 Sprint 04 API", "archived": true, "released": true, "releaseDate": "2013-02-25" }, { "id": "14814", "description": "2013 Sprint 04", "name": "2013 Sprint 04", "archived": true, "released": true, "releaseDate": "2013-02-25" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-03-23T16:23:39.000+0000", "created": "2013-02-05T02:17:59.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "api", "module_map", "qe-testadded" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [ { "id": "25488", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "inwardIssue": { "id": "109166", "key": "TIMOB-12583", "fields": { "summary": "Android: Maps V2 module: Adding custom views in the pin", "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": "High", "id": "2" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } } ], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2014-06-19T12:43:48.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": "h4. Feature Description\r\nCustomer wants to be able to use any view in as the custom pin instead of having to convert the view into a blob. \r\n\r\nh4. Extra info \r\nCustomer have the feeling that this will do the entire process more efficient (memory and time wise) and easy (to code). ", "attachment": [ { "id": "35297", "filename": "pin.jpg", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2013-02-05T02:21:09.000+0000", "size": 94015, "mimeType": "image/jpeg" } ], "flagged": false, "summary": "iOS: Adding custom views in the pin", "creator": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "subtasks": [], "reporter": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "environment": null, "comment": { "comments": [ { "id": "237187", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "This is the kind of feature the customer wants to implements. ", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2013-02-05T02:21:09.000+0000", "updated": "2013-02-05T02:21:09.000+0000" }, { "id": "238759", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Test Case\r\n{code}\r\nvar win = Titanium.UI.createWindow();\r\n\r\n\r\nvar myView1 = Ti.UI.createView({\r\n width:Ti.UI.SIZE,\r\n height:Ti.UI.SIZE,\r\n backgroundColor:'red',\r\n layout:'vertical'\r\n});\r\n\r\nvar label = Ti.UI.createLabel({\r\n text:\" $400K \",\r\n font:{fontSize:14, fontWeight:\"bold\", fontStyle:\"italic\"}\r\n})\r\n\r\nvar clickHandler = function(e){\r\n Ti.API.info('Custom View CLICKED');\r\n}\r\nlabel.addEventListener('click',clickHandler)\r\n\r\nmyView1.add(label)\r\n\r\nvar mountainView = 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 customView:myView1,\r\n animate:true,\r\n leftButton: 'images/atlanta.jpg',\r\n myid:1 // Custom property to uniquely identify this annotation.\r\n});\r\n\r\nvar mapview = Titanium.Map.createView({\r\n mapType: Titanium.Map.STANDARD_TYPE,\r\n region: {latitude:37.390749, longitude:-122.081651, \r\n latitudeDelta:0.01, longitudeDelta:0.01},\r\n animate:true,\r\n regionFit:true,\r\n userLocation:true,\r\n annotations:[mountainView],\r\n top:0,\r\n height:'80%'\r\n});\r\n\r\nwin.add(mapview);\r\n// Handle click events on any annotations on this map.\r\nmapview.addEventListener('click', function(evt) {\r\n\r\n Ti.API.info(\"Annotation \" + evt.title + \" clicked, id: \" + evt.annotation.myid);\r\n\r\n // Check for all of the possible names that clicksouce\r\n // can report for the left button/view.\r\n if (evt.clicksource == 'leftButton' || evt.clicksource == 'leftPane' ||\r\n evt.clicksource == 'leftView') {\r\n Ti.API.info(\"Annotation \" + evt.title + \", left button clicked.\");\r\n }\r\n});\r\n\r\nvar b1 = Ti.UI.createButton({\r\n title:'Add Text',\r\n left:0,\r\n bottom:0\r\n})\r\n\r\nwin.add(b1);\r\n\r\nb1.addEventListener('click',function(){\r\n var l = Ti.UI.createLabel({text:'More Text',font:{fontSize:14, fontWeight:\"bold\", fontStyle:\"italic\"}});\r\n l.addEventListener('click',clickHandler);\r\n myView1.add(l);\r\n})\r\n\r\nwin.open();\r\n{code}", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-02-15T22:47:20.000+0000", "updated": "2013-02-19T20:04:05.000+0000" }, { "id": "238761", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Pull pending against master\r\nhttps://github.com/appcelerator/titanium_mobile/pull/3887", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-02-15T22:50:06.000+0000", "updated": "2013-02-19T20:45:04.000+0000" }, { "id": "239672", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "CR & FR ", "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-25T18:12:31.000+0000", "updated": "2013-02-25T18:12:31.000+0000" }, { "id": "241124", "author": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with: \r\nSDK:3.1.0.v20130306004750\r\nStudio: 3.1.0.201302252142\r\nDevice:iOS simulator\r\n", "updateAuthor": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-07T11:42:54.000+0000", "updated": "2013-03-07T11:42:54.000+0000" }, { "id": "243812", "author": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Reopening the bug as Custom View is not behaving as expected.\r\ntested on :\r\nDevice: Samsung Galaxy Note, Android version: 2.3.6\r\nSDK: 3.1.0.v20130322171500\r\nCLI version : 3.0.25-alpha\r\nOS : MAC OSX 10.7.5\r\n\r\n\r\nSteps to reproduce:\r\n1) Run TIMOB-12582 under map module\r\n2) Click on \"Add Text\" button at bottom left of the screen. \r\n\r\nExpected:\r\n1) Should see a map with a view as annotation having text \"$400k\". \r\n2) The text \"more text\" should be added to the view each time \"add text\" is clicked.\r\n\r\nActual:\r\nAnnotation Text is :Appcelerator HeadQuarters, Mountain View , CA\r\nClicking on 'Add Text' button, nothing happens \r\n", "updateAuthor": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-03-23T11:41:12.000+0000", "updated": "2013-03-23T11:41:12.000+0000" }, { "id": "243813", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~pmishra] h3.this is an iOS feature -NOT ANDROID\ntest on iphone not android.", "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-23T16:23:19.000+0000", "updated": "2013-03-23T16:23:19.000+0000" }, { "id": "244755", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Seems we have a QE test that is not limiting itself to iOS. We can fix that. Closing.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-30T17:55:10.000+0000", "updated": "2013-03-30T17:55:10.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }