{ "id": "79197", "key": "TIMOB-6746", "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": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2012-05-09T16:05:43.000+0000", "created": "2011-08-12T13:46:02.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "look1", "parity" ], "versions": [ { "id": "11971", "description": "iOS5 and select Android fixes", "name": "Release 1.7.3", "archived": true, "released": true, "releaseDate": "2011-10-18" } ], "issuelinks": [], "assignee": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-21T21:06:15.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": "h2. Behavior\r\n\r\nMapView does not render if used in a non-url referenced window or tableview. The map only shows grids, does not update.\r\n\r\nh2. Steps to Reproduce\r\n\r\nAdd a mapview to one of the tweetanium's 'tabs'. I used this code below\r\n\r\n{code:javascript}\r\n(function() {\r\n\t//create the mapview\r\n\ttt.ui.createMapView = function(_args) {\r\n\t\t\r\n\t\tvar mapView = Titanium.Map.createView({\r\n\t\t\tmapType: Titanium.Map.STANDARD_TYPE,\r\n\t\t\tregion:{latitude:39.9645745, longitude:-75.137527, latitudeDelta:0.01, longitudeDelta:0.01},\r\n\t\t\tregionFit:true,\r\n\t\t\tuserLocation:false\r\n\t\t});\r\n\r\n\t\treturn mapView;\r\n\t};\r\n})();\r\n{code}\r\n\r\nthen reference tt.ui.createMapView() in the views property of tt.ui.createFilmStripView.\r\n\r\nThis is not an issue with an invalid map api key. To verify it wasn't, in the same app i have a menu item that creates a window with a url referencing a map.js file that creates the same mapview as mentioned above. It then opens this window up. The map displays fine, verifing the map api key I have is valid.\r\n\r\nh2. Related Discussions\r\n\r\n[Maps on tweetanium (2 weeks of forum searching and testing, still no luck)|http://developer.appcelerator.com/question/124085/maps-on-tweetanium-2-weeks-of-forum-searching-and-testing-still-no-luck]\r\n\r\nh2. Workaround\r\n\r\nSee comments\r\n", "attachment": [], "flagged": false, "summary": "Android: Map - MapView does not render if used in a non-url referenced window or tableview", "creator": { "name": "johnnysc22", "key": "johnnysc22", "displayName": "John Scanlon", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "johnnysc22", "key": "johnnysc22", "displayName": "John Scanlon", "active": true, "timeZone": "America/New_York" }, "environment": "* Titanium SDK version: Titanium SDK version: 1.7.3 (08/08/11 13:49 ea32d53...)\r\n* Platform & version: Android SDK (API's 2.3.1) \r\n* Device Details: Android emulator and Samsung Vibrant\r\n* Host Operating System: Windows 7 x64\r\n* Titanium Studio version: Titanium Studio, build: 1.0.2.201107130739", "comment": { "comments": [ { "id": "165622", "author": { "name": "motin", "key": "motin", "displayName": "Fredrik Motin", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This seems to be the exact same issue that we have run into. Posted in the forums under http://developer.appcelerator.com/question/124831/map-view-tiles-not-showing\r\n\r\nThe tiles show only if I don't load any other controls, images or widgets in the other views. Also, the tiles show when only the map view is enable and no other tabs. But whenever the map view is shown as one of other tabs with their own UI etc, the tiles refuse to load 95% of the time. Is this a memory management problem?\r\n\r\nWhat can we provide to help investigate this issue closer to a solution?", "updateAuthor": { "name": "motin", "key": "motin", "displayName": "Fredrik Motin", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-09-12T02:33:21.000+0000", "updated": "2011-09-12T02:33:21.000+0000" }, { "id": "166565", "author": { "name": "motin", "key": "motin", "displayName": "Fredrik Motin", "active": true, "timeZone": "America/Los_Angeles" }, "body": "We have now confirmed that opening the mapview in a new window (and new context) results in a working mapview, regardless of how many controls, images or widgets exists in the other views...\r\n\r\nThis is definitely a problem with the Tweetanium architecture, resulting in unusable mapviews there-in. How can we help solving this issue?", "updateAuthor": { "name": "motin", "key": "motin", "displayName": "Fredrik Motin", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-09-21T14:44:50.000+0000", "updated": "2011-09-21T14:44:50.000+0000" }, { "id": "166839", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Guys\r\n\r\nPlease see the information about Google maps at [Titanium Compatibility Matrix|http://wiki.appcelerator.org/display/guides/Titanium+Compatibility+Matrix]. Thus, would you please test your code in the emulator using Android APIs 2.2, and let me know whether it improves the issue.\r\n\r\nThanks", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-09-23T16:06:48.000+0000", "updated": "2011-09-23T16:06:48.000+0000" }, { "id": "166843", "author": { "name": "mjreagle", "key": "mjreagle", "displayName": "Mike Robinson", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I was having the issue as well, even with the Google APIs. It seems to be fixed for me if I create the map completely within the event listener for window.open(). And I mean completely within, only the variable vwMap should exist outside, the Ti.Map.createView must be within the window.open for it to work.", "updateAuthor": { "name": "mjreagle", "key": "mjreagle", "displayName": "Mike Robinson", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-09-23T16:41:50.000+0000", "updated": "2011-09-23T16:41:50.000+0000" }, { "id": "174268", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The issue still definitely exists in 1.8.x CI, tested against the Android 2.2 emulator with the Google APIs. I was able to get it working using the workaround of defining the mapview in the window.open() event.", "updateAuthor": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-11-29T20:12:36.000+0000", "updated": "2011-11-29T20:12:36.000+0000" }, { "id": "176458", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "According to TonyL, mapviews don't work properly in single context if you define them before the window open(). Hence, the following workaround can be used: \r\n\r\n{code:lang=javascript}\r\nvar mapview;\r\n\r\nwin.addEventListener('open', function(e) {\r\n\tmapview = Ti.Map.createMapView();\r\n\t// the rest of the code\r\n});\r\n{code}", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-12-19T06:18:43.000+0000", "updated": "2011-12-19T06:18:43.000+0000" }, { "id": "177851", "author": { "name": "wongjoh", "key": "wongjoh", "displayName": "Johnny Wong", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Will there be any resolution to this ticket? I am running into this issue when showing the mapview in multiple places (doing all the stuff about same javascript context, lightweight windows, and adding/removing the mapview). \r\n\r\n@appcelerator -- Stuff like this is what makes us hold off on having full commitment to titanium and getting the enterprise license for our startup", "updateAuthor": { "name": "wongjoh", "key": "wongjoh", "displayName": "Johnny Wong", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-03T09:16:25.000+0000", "updated": "2012-01-03T09:16:25.000+0000" }, { "id": "193245", "author": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "body": "@Johnny - We are now working on this issue actively.", "updateAuthor": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-30T20:34:19.000+0000", "updated": "2012-04-30T20:34:19.000+0000" }, { "id": "193247", "author": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "body": "@Johnny\r\nOn Android be sure you only have one MapView attached at a time.\r\nThe Google Maps library only allows one active map per a process. If your issue is different\r\ncould you please provide us more details? A simple test case and steps to reproduce would be very helpful.\r\nPlease create a new ticket if this isn't related to Tweetanium. Also please test against the latest SDK,\r\nthere have been fixes applied since this ticket was created that may solve your issue.", "updateAuthor": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-30T21:34:18.000+0000", "updated": "2012-04-30T21:34:18.000+0000" }, { "id": "194328", "author": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Please direct any bugs with Tweeanium over to its [Github project|https://github.com/appcelerator-titans/tweetanium] which is managed now by the Titan community.\r\n\r\nIf there is a platform issue please open a new issue w/ a test case that demonstrates the bug.", "updateAuthor": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-09T16:05:43.000+0000", "updated": "2012-05-09T16:05:43.000+0000" }, { "id": "414409", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as invalid.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-21T21:06:15.000+0000", "updated": "2017-03-21T21:06:15.000+0000" } ], "maxResults": 11, "total": 11, "startAt": 0 } } }