Update: can't load `places` library because the maps plugin loads the Google Maps API library
MODIFY
src/browser/CordovaGoogleMaps.js
src/browser/CordovaGoogleMaps.js
+
var PluginMap = require('cordova-plugin-googlemaps.PluginMap'),
PluginStreetViewPanorama = require('cordova-plugin-googlemaps.PluginStreetViewPanorama'),
event = require('cordova-plugin-googlemaps.event'),
@@ -87,6 +88,9 @@ var CordovaGoogleMaps = {
pluginMap.one(event.MAP_READY, onSuccess);
pluginMap.one('load_error', onError);
+ // Does this app already load the google maps library?
+ API_LOADED_STATUS = (window.google && window.google.maps) ? 2 : API_LOADED_STATUS;
+
switch(API_LOADED_STATUS) {
case 0:
cordova.fireDocumentEvent('load_googlemaps', []);
@@ -138,6 +142,9 @@ var CordovaGoogleMaps = {
pluginStreetView.one(event.PANORAMA_READY, onSuccess);
pluginStreetView.one('load_error', onError);
+ // Does this app already load the google maps library?
+ API_LOADED_STATUS = (window.google && window.google.maps) ? 2 : API_LOADED_STATUS;
+
switch(API_LOADED_STATUS) {
case 0:
cordova.fireDocumentEvent('load_googlemaps', []);

Update: can't load `places` library because the maps plugin loads the Google Maps API library
https://github.com/ionic-team/ionic-native-google-maps/issues/62