{ "id": "152054", "key": "TIMOB-19726", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "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": "16997", "name": "Release 5.2.0", "archived": false, "released": true, "releaseDate": "2016-02-23" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-10-19T03:05:25.000+0000", "created": "2015-10-14T21:29:17.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [], "versions": [ { "id": "14826", "description": "Release 5.1.0-remaining iOS9 features, Android M features", "name": "Release 5.1.0", "archived": false, "released": true, "releaseDate": "2015-11-20" } ], "issuelinks": [], "assignee": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2016-01-15T19:37:06.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": "getMap() method is deprecated, we need to use getMapAsync() instead.", "attachment": [], "flagged": false, "summary": "Android: Refactor map module to remove deprecated method getMap()", "creator": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 503, "state": "closed", "name": "2015 Sprint 21 SDK", "startDate": "2015-10-10T00:32:18.011Z", "endDate": "2015-10-24T00:32:00.000Z", "completeDate": "2015-10-26T02:20:47.579Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "366831", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "map PR: https://github.com/appcelerator-modules/ti.map/pull/130\r\nmaster PR: https://github.com/appcelerator/titanium_mobile/pull/7306", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-10-14T21:37:40.000+0000", "updated": "2015-10-14T22:58:24.000+0000" }, { "id": "367107", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "Tested with code:\r\n{code}\r\nvar MapModule = require('ti.map');\r\nvar win = Ti.UI.createWindow({backgroundColor: 'white'});\r\nvar opera = MapModule.createAnnotation({\r\n latitude: -33.8569,\r\n longitude: 151.2153,\r\n image: 'SydneyOperaHouse.jpg',\r\n title: 'Sydney Opera House',\r\n subtitle: 'Sydney, New South Wales, Australia'\r\n});\r\nvar bridge = MapModule.createAnnotation({\r\n latitude: -33.852222,\r\n longitude: 151.210556,\r\n pincolor: MapModule.ANNOTATION_AZURE,\r\n // Even though we are creating a button, it does not respond to Button events or animates.\r\n // Use the Map View's click event and monitor the clicksource property for 'leftPane'.\r\n leftView: Ti.UI.createButton({title: 'Detail'}),\r\n // For eventing, use the Map View's click event\r\n // and monitor the clicksource property for 'rightPane'.\r\n rightButton: 'SydneyHarbourBridge.jpg', \r\n title: 'Sydney Harbour Bridge',\r\n subtitle: 'Port Jackson'\r\n});\r\nvar random = MapModule.createAnnotation({\r\n latitude: -33.87365,\r\n longitude: 151.20689,\r\n pincolor: MapModule.ANNOTATION_VIOLET,\r\n // Even though we are creating a label, it does not respond to Label events.\r\n // Use the Map View's events instead. \r\n customView: Ti.UI.createLabel({\r\n text: 'MOVE ME!',\r\n opacity: '80%',\r\n color: 'red',\r\n backgroundColor: 'gray',\r\n font: {\r\n fontSize: '16dp',\r\n fontWeight: 'bold'\r\n }\r\n }),\r\n draggable: true\r\n});\r\nvar mapview = MapModule.createView({\r\n mapType: MapModule.NORMAL_TYPE,\r\n region: {latitude: -33.87365, longitude: 151.20689, latitudeDelta: 0.1, longitudeDelta: 0.1 },\r\n annotations: [bridge,opera] //< add these annotations upon creation\r\n});\r\n// Add this annotation after creation\r\nmapview.addAnnotation(random);\r\nwin.add(mapview);\r\nwin.open();\r\n{code}", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2015-10-19T03:00:41.000+0000", "updated": "2015-10-19T03:00:41.000+0000" }, { "id": "367108", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "Both PR merged.", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2015-10-19T03:05:34.000+0000", "updated": "2015-10-19T03:05:34.000+0000" }, { "id": "374716", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Ran QE android map tests with 2.3.6 Map module & no issues were found.\r\n\r\nClosing.\r\n\r\nEnvironment:\r\nAppc Studio : 4.5.0.201601131150\r\nTi SDK : 5.2.0.v20160114021251\r\nTi CLI : 5.0.5\r\nAlloy : 1.7.26\r\nMAC Yosemite : 10.10.5\r\nAppc NPM : 4.2.2\r\nAppc CLI : 5.1.0\r\nNode: v0.12.27\r\nMap Module: 2.3.6\r\nNexus 6P - Android 6.0\r\nNexus 5 - Android 5.1.1", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-01-15T19:36:46.000+0000", "updated": "2016-01-15T19:36:46.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }