{ "id": "113129", "key": "TIMOB-13628", "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": "15703", "description": "2013 Sprint 22", "name": "2013 Sprint 22", "archived": true, "released": true, "releaseDate": "2013-11-01" }, { "id": "15704", "description": "2013 Sprint 22 API", "name": "2013 Sprint 22 API", "archived": true, "released": true, "releaseDate": "2013-11-01" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-05-08T17:53:28.000+0000", "created": "2013-04-19T15:01:52.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "exalture", "module_androidmapv2", "qe-testadded" ], "versions": [ { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" } ], "issuelinks": [], "assignee": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-05-12T10:40:19.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. Problem\r\n\r\nWhen the map is placed in a view hierarchy it can sometimes be placed below all views (even below the window background color). This happens for example when you animate the parent view position. But when placed in a quite large view hierarchy I've noted that it randomly can behave the same as described above. This can be prevented if the [zOrderOnTop|http://developer.android.com/reference/com/google/android/gms/maps/GoogleMapOptions.html#zOrderOnTop(boolean)] is set to true and the maps view will be placed above all other views in the Activity.\r\n\r\n\r\nRun the code on 4.2.x device with Google Play installed.\r\n{code:lang=javascript|title=app.js} \r\nvar win = Ti.UI.createWindow({ \r\n backgroundColor : 'transparent', \r\n orientationModes : [Titanium.UI.PORTRAIT], \r\n exitOnClose : true, \r\n navBarHidden : true \r\n}); \r\nwin.open(); \r\n\r\nvar view2 = Ti.UI.createView({ \r\nwidth : Ti.UI.FILL, \r\nheight : Ti.UI.FILL, \r\nbackgroundColor : 'transparent' \r\n}); \r\n\r\nvar view3 = Ti.UI.createView({ \r\ntop : 0, \r\nleft : 0, \r\nwidth : Ti.UI.FILL, \r\nheight : 200, \r\nbackgroundColor : 'yellow' \r\n}); \r\nvar label = Ti.UI.createLabel({ \r\ncolor:'black', \r\ntext: \"I'm under the map, and should never be visible! But am I?\", \r\ntextAlign: Ti.UI.TEXT_ALIGNMENT_LEFT, \r\nfont: { fontSize: 30 }, \r\ntop: 0, \r\nleft : 0 \r\n}); \r\nview3.add(label); \r\nview2.add(view3); \r\n\r\nvar MapModule = require('ti.map'); \r\nvar mapview = MapModule.createView({ \r\n mapType:MapModule.NORMAL_TYPE, \r\n //zOrderOnTop: true \r\n}); \r\nview2.add(mapview); \r\n\r\nwin.add(view2); \r\n\r\nsetTimeout(function() \r\n{ \r\nvar dialog = Ti.UI.createAlertDialog({ \r\nmessage: 'Going to animate, bye bye maps! :/', \r\ntitle: 'Notification', \r\nok: 'Okay', \r\n}); \r\ndialog.addEventListener('click', function() \r\n{ \r\nview2.animate({ \r\nleft : 200, \r\nduration : 150 \r\n}); \r\ndialog.removeEventListener('click', arguments.callee); \r\n}); \r\ndialog.show(); \r\n}, 5000); \r\n{code} \r\n\r\n1. Run the above code, click the alert after 5 seconds \r\n2. Uncomment zOrderOnTop line, repeat step 1. \r\n\r\nFail case: yellow label on top of map \r\nExpected case: should not see yellow label.", "attachment": [], "flagged": false, "summary": "Android Maps v2: Support the native zOrderOnTop option", "creator": { "name": "jesper@x-com.se", "key": "jesper@x-com.se", "displayName": "Jesper Jonsson", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "jesper@x-com.se", "key": "jesper@x-com.se", "displayName": "Jesper Jonsson", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Titanium SDK version: 3.1.0.GA\r\nAndroid Maps v2 Module: 2.1.0\r\nJavascript Engine: V8\r\nPlatform & version: Android 4.1.2\r\nDevice Details: Samsung S3 GT-I9300\r\nHost Operating System: OS X 10.8\r\nTitanium Studio version: 3.1.0.201304151600", "comment": { "comments": [ { "id": "261864", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator/titanium_modules/pull/125", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-07-15T20:32:39.000+0000", "updated": "2013-07-15T20:32:39.000+0000" }, { "id": "269245", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR in new repo: https://github.com/appcelerator-modules/ti.map/pull/4", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-09-02T23:51:15.000+0000", "updated": "2013-09-02T23:51:15.000+0000" }, { "id": "275724", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The PR does not fix the original test case reliably. Closed the PR. We need more investigation.", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-18T20:37:12.000+0000", "updated": "2013-10-18T20:38:54.000+0000" }, { "id": "276724", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Test case: \r\n{code}\r\nvar MapModule = require(\"ti.map\");\r\nvar win = Titanium.UI.createWindow({\r\n backgroundColor : \"white\"\r\n});\r\n \r\nvar mapContainer = Ti.UI.createView({\r\n id : 'mapContainer',\r\n top : \"50%\",\r\n width : \"95%\",\r\n bottom : \"15dip\",\r\n visible : true,\r\n layout : \"vertical\",\r\n backgroundImage : \"/images/map_bg.png\"\r\n});\r\nwin.add(mapContainer);\r\n\r\nvar mapview = MapModule.createView({\r\n mapType : MapModule.NORMAL_TYPE,\r\n region : {\r\n latitude : 33.74511,\r\n longitude : -84.38993,\r\n latitudeDelta : 0.01,\r\n longitudeDelta : 0.01\r\n },\r\n animate : true,\r\n regionFit : true,\r\n userLocation : true,\r\n top : \"5dip\",\r\n bottom : \"10dp\",\r\n width : \"98%\",\r\n});\r\n \r\nmapContainer.add(mapview);\r\nwin.open();\r\n{code}\r\n1. Run code on pre Jelly Bean device.\r\n2. With zOrderOnTop not set, you should see a black area where the map is for ~200ms before map renders.\r\n3. With zOrderOnTop set to true, you should NOT see the black area. You should NOT see myLocation button, as well as zoom buttons.", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-25T01:02:34.000+0000", "updated": "2013-10-25T01:49:28.000+0000" }, { "id": "304339", "author": { "name": "Farouk Mokrani", "key": "farouk mokrani", "displayName": "Farouk Mokrani", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I have the same issue any solution for this problem ?", "updateAuthor": { "name": "Farouk Mokrani", "key": "farouk mokrani", "displayName": "Farouk Mokrani", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-05-12T10:40:19.000+0000", "updated": "2014-05-12T10:40:19.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }