Changed the googlemaps-cdv-plugin for working both Cordova and ionic framework.