Project: titanium
Issue TIMOB-18876: TiUIMapView: Not loading at all (Nested fragments)
TIMOB-18244 - Map view as center view for drawer layout works just fine. *But placing map view into a wrapper view and setting the same as center view for drawer layout, never lets the map load.* May be using http://developer.android.com/reference/android/app/Fragment.html#getChildFragmentManager() can fix this. Not sure how :( {code:title=Test Case} var TiDrawerLayout = require('com.tripvi.drawerlayout'); var Map = require("ti.map"); var win = Ti.UI.createWindow({ backgroundColor : 'white' }); var drawer = TiDrawerLayout.createDrawer(); var menu = Ti.UI.createTableView({ data : [{ title : "Home" }, { title : "About" }] }); var wrapperView = Ti.UI.createView({ backgroundColor : 'orange', }); wrapperView.add(Ti.UI.createLabel({ top : 10, text : "I would like to place a list view or some other compoent here, now map never loads", color : "#fff" })); var mapview = Map.createView({ bottom : 0, height : "50%", fragmentOnly : true //setting this to false crashes the app }); wrapperView.add(mapview); drawer.setLeftView(menu); drawer.setCenterView(wrapperView); win.add(drawer); win.open(); {code}
Story points: 13