{ "id": "117704", "key": "TIMOB-14694", "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": "15597", "description": "2013 Sprint 17", "name": "2013 Sprint 17", "archived": true, "released": true, "releaseDate": "2013-08-23" }, { "id": "15599", "description": "2013 Sprint 17 API", "name": "2013 Sprint 17 API", "archived": true, "released": true, "releaseDate": "2013-08-23" } ], "resolution": { "id": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2013-08-23T18:02:50.000+0000", "created": "2013-07-29T11:45:51.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "android", "defect" ], "versions": [ { "id": "14164", "description": "Release 3.0.2", "name": "Release 3.0.2", "archived": true, "released": true, "releaseDate": "2013-02-19" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "15478", "description": "Release 3.1.1", "name": "Release 3.1.1", "archived": true, "released": true, "releaseDate": "2013-06-17" } ], "issuelinks": [], "assignee": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-22T21:09:09.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": "Two different map instances are overlapping while using in two different tabs of a tabgroup.\r\n\r\nSteps to reproduce:\r\n\r\n1: use the below sample code and copy paste it on a app.js file.\r\n2: set the below property in the tiapp.xml file.\r\n{code}\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            \r\n            \r\n            \r\n            \r\n            \r\n            \r\n                \r\n                \r\n            \r\n        \r\n    \r\n{code}\r\n\r\n3: tes the module in device.\r\n4: tab1 open by default and map rendered properly.\r\n5: Switch to tab2, now you can see both the maps are displayed.\r\n\r\n**sample code (app.js)**\r\n{code}\r\nvar MapModule = require('ti.map');\r\nvar tbGr = Ti.UI.createTabGroup();\r\n\r\nvar win1 = Ti.UI.createWindow({\r\n\tbackgroundColor:\"red\",\r\n\tfullscreen:true\r\n});\r\n\r\nvar win2 = Ti.UI.createWindow({\r\n\tbackgroundColor:\"yellow\",\r\n\tfullscreen:true\r\n});\r\n\r\nvar tb1 = Ti.UI.createTab({\r\n\twindow:win1\r\n});\r\nvar tb2 = Ti.UI.createTab({\r\n\twindow:win2\r\n});\r\n\r\ntbGr.tabs = [tb1,tb2];\r\n\r\n\r\n//var win = Ti.UI.createWindow({fullscreen: false});\r\n\r\nvar map1 = MapModule.createView({\r\n\tuserLocation: true,\r\n\tmapType: MapModule.NORMAL_TYPE,\r\n\tanimate: true,\r\n\tregion: {latitude: -33.87365, longitude: 151.20689, latitudeDelta: 0.1, longitudeDelta: 0.1 }, //Sydney\r\n\theight: '50%',\r\n\ttop: 0,\r\n\tleft: 0,\r\n\twidth: '80%'\r\n});\r\nvar map2 = MapModule.createView({\r\n\tuserLocation: true,\r\n\tmapType: MapModule.NORMAL_TYPE,\r\n\tanimate: true,\r\n\tregion: {latitude: -33.87365, longitude: 151.20689, latitudeDelta: 0.1, longitudeDelta: 0.1 }, //Sydney\r\n\theight: '50%',\r\n\ttop: 0,\r\n\tright: 0,\r\n\twidth: '80%'\r\n});\r\n\r\nwin1.add(map1);\r\nwin2.add(map2);\r\n\r\ntbGr.open();\r\n{code}\r\n", "attachment": [ { "id": "41107", "filename": "map1_tab1.png", "author": { "name": "anigam", "key": "anigam", "displayName": "Ashish Nigam", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-07-29T12:09:28.000+0000", "size": 223044, "mimeType": "image/png" }, { "id": "41108", "filename": "map2_partial-Map1_tab2.png", "author": { "name": "anigam", "key": "anigam", "displayName": "Ashish Nigam", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-07-29T12:09:28.000+0000", "size": 229572, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: Maps V2 Map view instances overlap when placed in separate tabs", "creator": { "name": "anigam", "key": "anigam", "displayName": "Ashish Nigam", "active": true, "timeZone": "Asia/Kolkata" }, "subtasks": [], "reporter": { "name": "anigam", "key": "anigam", "displayName": "Ashish Nigam", "active": true, "timeZone": "Asia/Kolkata" }, "environment": "Titanium Mobile SDK, Android, MapModule", "comment": { "comments": [ { "id": "414959", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as \"Won't Fix\".", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-22T21:09:09.000+0000", "updated": "2017-03-22T21:09:09.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }