{ "id": "109166", "key": "TIMOB-12583", "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": "15274", "description": "2013 Sprint 06 API", "name": "2013 Sprint 06 API", "archived": true, "released": true, "releaseDate": "2013-03-25" }, { "id": "14816", "description": "2013 Sprint 06", "name": "2013 Sprint 06", "archived": true, "released": true, "releaseDate": "2013-03-25" }, { "id": "15412", "name": "Co-3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-03-20T21:20:21.000+0000", "created": "2013-02-05T02:18:22.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "api", "module_googlemapv2", "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" }, "outwardIssue": { "id": "109165", "key": "TIMOB-12582", "fields": { "summary": "iOS: 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 } } } }, { "id": "27625", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "112589", "key": "TIMOB-13498", "fields": { "summary": "Android: Map Module v2 throws an UnsatisfiedLinkError on releases minor than 3.1", "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": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-08-19T13:55:43.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": "10202", "name": "Android", "description": "Android 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": "35296", "filename": "pin.jpg", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2013-02-05T02:20:39.000+0000", "size": 94015, "mimeType": "image/jpeg" } ], "flagged": false, "summary": "Android: Maps V2 module: 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": "237186", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "This is the kind of custom pins that the customer wants to add. ", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2013-02-05T02:20:39.000+0000", "updated": "2013-02-05T02:20:39.000+0000" }, { "id": "237788", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Can be fixed on Android Maps v2", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-08T20:04:22.000+0000", "updated": "2013-02-08T20:04:22.000+0000" }, { "id": "242776", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "1. PR https://github.com/appcelerator/titanium_mobile/pull/3982 fixes a bug in the toImage() method.\nTest case:\n{code}\nvar win = Ti.UI.createWindow({fullscreen: false});\nvar myView1 = Ti.UI.createView({\n //width:100,\n //height:50,\n width:Ti.UI.SIZE,\n height:Ti.UI.SIZE,\n backgroundColor:'red'\n});\n \nvar label = Ti.UI.createLabel({\n text:\" $400K \",\n font:{fontSize:10, fontWeight:\"bold\", fontStyle:\"italic\"}\n});\n\nmyView1.add(label);\n\nvar imgview = Ti.UI.createImageView({\n\twidth: 400,\n\theight: 300,\n\tbackgroundColor: 'white',\n\tenableZoomControls: true\n});\n\nvar imageBlob = myView1.toImage();\n\nimgview.image = imageBlob.media;\n\nwin.add(imgview);\nwin.open();\n{code}\nFor FR, please run the above test case. Should see a label with the text \"$400k\" and with the red background color.\n2. PR https://github.com/appcelerator/titanium_modules/pull/92\nTest case:\n{code}\nvar MapModule = require('ti.map');\n\nvar win = Ti.UI.createWindow({fullscreen: false});\nvar myView1 = Ti.UI.createView({\n width:Ti.UI.SIZE,\n height:Ti.UI.SIZE,\n backgroundColor:'red'\n});\n \nvar label = Ti.UI.createLabel({\n text:\" $400K \",\n font:{fontSize:18, fontWeight:\"bold\", fontStyle:\"italic\"}\n});\n\nmyView1.add(label);\n\nvar anno = MapModule.createAnnotation({latitude: -33.87365, customView: myView1, image: \"KS_nav_ui.png\", longitude: 151.20689, title: \"Drag Me\", subtitle: \"Sydney is quite chill\", draggable: true});\nvar anno2 = MapModule.createAnnotation({latitude: -33.86365, pincolor: MapModule.ANNOTATION_BLUE, longitude: 151.21689, title: \"Drag Me 2\", subtitle: \"This is anno2\", draggable: true});\nvar anno3 = MapModule.createAnnotation({latitude: -33.85365, longitude: 151.20689, title: \"anno3\", subtitle: \"This is anno3\", draggable: false});\n\nvar map = MapModule.createView({\n\tuserLocation: true,\n\tmapType: MapModule.NORMAL_TYPE,\n\tanimate: true,\n\tannotations: [anno, anno2, anno3],\n\tregion: {latitude: -33.87365, longitude: 151.20689, latitudeDelta: 0.1, longitudeDelta: 0.1 }, //Sydney\n\ttop: '30%'\n});\n\nmap.addEventListener('pinchangedragstate', function(e) {\n\tTi.API.info(e.title + \": newState=\" + e.newState + \", lat=\" + e.annotation.latitude + \", lon=\" + e.annotation.longitude);\n});\n\nvar b = Ti.UI.createButton({\n\ttitle: \"Toggle draggable for anno3\",\n\ttop: 0\n});\nb.addEventListener('click', function(){\n\tanno3.draggable = !anno3.draggable;\n\tTi.API.info(\"anno3.draggable = \" + anno3.draggable);\n});\n\nwin.add(b);\nwin.add(map);\nwin.open();\n{code}", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-18T21:45:39.000+0000", "updated": "2013-03-18T21:45:39.000+0000" }, { "id": "243819", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Test case #1 above added to map_module, test case #2 to mapv2 module test apps.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-23T21:39:03.000+0000", "updated": "2013-03-23T21:39:03.000+0000" }, { "id": "319267", "author": { "name": "vdegroote", "key": "vdegroote", "displayName": "Vincent Degroote", "active": true, "timeZone": "Europe/Berlin" }, "body": "Hi,\r\n\r\napparently the customView property is not yet supported on Android. https://github.com/appcelerator/titanium_mobile/blob/58198c641d77e17d156431666e80bae732b5c130/apidoc/Titanium/Map/Annotation.yml#L87\r\n\r\nAm I wrong? Is there an alternative?\r\n\r\nThanks in advance for your answer.", "updateAuthor": { "name": "vdegroote", "key": "vdegroote", "displayName": "Vincent Degroote", "active": true, "timeZone": "Europe/Berlin" }, "created": "2014-08-19T12:52:40.000+0000", "updated": "2014-08-19T12:52:40.000+0000" }, { "id": "319275", "author": { "name": "vdegroote", "key": "vdegroote", "displayName": "Vincent Degroote", "active": true, "timeZone": "Europe/Berlin" }, "updateAuthor": { "name": "vdegroote", "key": "vdegroote", "displayName": "Vincent Degroote", "active": true, "timeZone": "Europe/Berlin" }, "created": "2014-08-19T13:55:43.000+0000", "updated": "2014-08-19T13:55:43.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }