Hide the previous page mandatory when the app uses Framework7
MODIFY
plugin.xml
plugin.xml
<?xml version='1.0' encoding='utf-8'?>
-<plugin id="cordova-plugin-googlemaps" version="2.2.8-beta-20180315-1233" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
+<plugin id="cordova-plugin-googlemaps" version="2.2.8-beta-20180320-1111" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
<name>cordova-plugin-googlemaps</name>
<js-module name="BaseClass" src="www/BaseClass.js">
<runs />

MODIFY
www/pluginInit.js
www/pluginInit.js
@@ -82,9 +82,9 @@ function pluginInit() {
/*****************************************************************************
* Prevent background, background-color, background-image properties
*****************************************************************************/
- var navDecorBlocker = document.createElement("style");
- navDecorBlocker.setAttribute("type", "text/css");
- navDecorBlocker.innerText = [
+ var cssAdjuster = document.createElement("style");
+ cssAdjuster.setAttribute("type", "text/css");
+ cssAdjuster.innerText = [
"html, body, ._gmaps_cdv_ {",
" background-image: url() !important;",
" background: rgba(0,0,0,0) url() !important;",
@@ -94,9 +94,12 @@ function pluginInit() {
" background-color: rgba(0,0,0,0) !important;",
" background: rgba(0,0,0,0) !important;",
" display:none !important;",
+ "}",
+ ".framework7-root .page-previous {",
+ " display:none !important;",
"}"
].join("");
- document.head.appendChild(navDecorBlocker);
+ document.head.appendChild(cssAdjuster);
// I guess no longer necessary this code at 2018/March

Hide the previous page mandatory when the app uses Framework7