I'm developing a mobile cross platform web app using Framework7 and phonegap build, in a contacts page i embedded a google map view. In all the pages a side panel can be opened with the swipe right gesture. I would like to pan through the map freely without opening the side panel, how can i reach this ? Thanks
问问题
129 次
1 回答
2
您可以像这样动态更改选项:
myApp.params.swipePanel = false;
所以你可以这样做:
$$(document).on('pageAfterAnimation', function (e) {
page = e.detail.page;
if (page.name === 'pageWithGoogleMap') {
myApp.params.swipePanel = false;
} else {
myApp.params.swipePanel = 'left';
}
});
还有很多其他方法可以做到这一点,选择最适合您的需要
于 2015-02-16T20:24:40.550 回答