我正在使用 Qooxdoo 3.0 并开始使用移动应用程序,但在我导航到新页面然后尝试返回地图页面后,我的OpenLayers地图消失了。它在台式机上运行良好,但在我正在测试它的iPad上却不行。似乎地图被推到了 show 命令的页面后面。有没有办法将它移回顶部,或者可能发生了其他事情?这是代码:
// Initialize both pages
var mapPage = meddv2.page.Maps.getInstance();
var controlPanel = meddv2.page.ControlPanel.getInstance();
// *** show the map page *** - map does not appear
controlPanel.addListener("back", function() {
mapPage.show({reverse:true});
// *** I thought this may help which calls map.updateSize() in the map class
mapPage.redrawMap();
}, this);
// Show the Control Panel
var controlPanelButton = new qx.ui.mobile.navigationbar.Button("Control Panel");
controlPanelButton.addListener("tap", function(){
controlPanel.show();
}, this);
mapPage.getLeftContainer().add(controlPanelButton);
// Add the pages to the page manager.
var manager = new qx.ui.mobile.page.Manager(false);
manager.addDetail([
mapPage,
controlPanel
]);
//Show the map page on load
mapPage.show();
谢谢你的帮助!