{ "id": "75919", "key": "TIMOB-4352", "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": [], "resolution": { "id": "10100", "description": "This issue won't be actioned.", "name": "Won't Do" }, "resolutiondate": "2020-01-09T19:11:55.000+0000", "created": "2011-06-08T11:17:43.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "mapview", "tbs-1.9.0" ], "versions": [ { "id": "11244", "name": "Release 1.7.0", "archived": true, "released": true, "releaseDate": "2011-06-13" }, { "id": "11260", "description": "", "name": "Release 1.6.2", "archived": true, "released": true, "releaseDate": "2011-04-20" } ], "issuelinks": [], "assignee": null, "updated": "2020-01-09T19:11:55.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": "If you create and add a mapView to its parent window before that window is open then the map image will not load when you zoom in and out.\r\n\r\nStep 1: run the code below\r\nStep 2: notice that when you move the map or zoom out, the map does not refresh\r\nStep 3: remove the comments from the open event listener\r\nStep 4: run the code again\r\nStep 5: notice that the map image refreshes when you zoom in or out\r\n\r\n{code:title=\"app.js\"}\r\nvar win = Titanium.UI.createWindow({ \r\n backgroundColor:'#fff',\r\n fullscreen:true\r\n});\r\n\r\nwin.open();\r\n\r\n// win.addEventListener('open', function(e){\r\n var mapview = Titanium.Map.createView({\r\n mapType: Titanium.Map.STANDARD_TYPE,\r\n region:{latitude:33.74511, longitude:-84.38993, latitudeDelta:0.5, longitudeDelta:0.5},\r\n animate:true,\r\n regionFit:true,\r\n userLocation:true\r\n });\r\n\r\n win.add(mapview);\r\n// });\r\n{code}\r\n\r\nh3. Workaround\r\ncreate and add the mapview to the window in the window open event listener.\r\n\r\nh3. Associated Helpdesk Ticket\r\nhttp://appc.me/c/APP-399811", "attachment": [], "flagged": false, "summary": "Android: MapView does not refresh map if created before the parent window is open", "creator": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "TiSDK 1.7.2.RC1, TiSDK 1.6.2\r\nAndroid Emulator 2.1, Nexus One 2.2.2\r\n", "comment": { "comments": [ { "id": "163656", "author": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Known workarounds exist, and the fix requires some major architecture changes -- moving into 1.9.0", "updateAuthor": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-08-22T13:33:04.000+0000", "updated": "2011-08-22T13:33:04.000+0000" }, { "id": "300409", "author": { "name": "anh.nguyen", "key": "anh.nguyen", "displayName": "Anh Nguyen", "active": true, "timeZone": "America/Chicago" }, "body": "Did any one fix this issue? any update from Appcelerator?", "updateAuthor": { "name": "anh.nguyen", "key": "anh.nguyen", "displayName": "Anh Nguyen", "active": true, "timeZone": "America/Chicago" }, "created": "2014-04-09T20:08:05.000+0000", "updated": "2014-04-09T20:08:05.000+0000" }, { "id": "453557", "author": { "name": "ahutton", "key": "ahutton", "displayName": "Alan Hutton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "It has been decided that this issue should be closed as “Won’t do.” This issue is out of date with our current supported SDK release (7.5.2.GA as of the date of closure), and out of date with mobile OS versions. Updating, or creating code may not reproduce the issue reported, or be a valid test case.\r\n\r\nIf community members feel that the issue is still valid, please create a new ticket. Please reference this closed ticket number, include SDK used, comments, and code that demonstrates/reproduces the issue.", "updateAuthor": { "name": "ahutton", "key": "ahutton", "displayName": "Alan Hutton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-01-09T19:11:55.000+0000", "updated": "2020-01-09T19:11:55.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }