Cannot open the app in offline


I am using google maps in my app.When there is no internet connection I am unable to open the app.

Is it possible to open the app in offline but dont allow the user to use google maps.Please help me.I have installed the cordova plugin cordova-plugin-network-information and implemented this app.js file like:

if(window.Connection) {
if(navigator.connection.type == Connection.NONE) {
alert(navigator.connection.type );

It is throwing alert like connection refuse to server in index.html because google maps is included in index.html file.