ionic-team / ionic-native-google-maps

Google maps plugin for Ionic Native
Other
221 stars 125 forks source link

TypeError: undefined is not an object (evaluating 'map.getDiv') #112

Closed hkjeffchan closed 5 years ago

hkjeffchan commented 5 years ago

I'm submitting a ... (check one with "x")

If you choose 'problem or bug report', please select OS: (check one with "x")

cordova information: (run $> cordova plugin list)

cordova-plugin-device 2.0.2 "Device"
cordova-plugin-googlemaps 2.4.6 "cordova-plugin-googlemaps"
cordova-plugin-ionic-keyboard 2.1.3 "cordova-plugin-ionic-keyboard"
cordova-plugin-ionic-webview 2.2.0 "cordova-plugin-ionic-webview"
cordova-plugin-splashscreen 5.0.2 "Splashscreen"
cordova-plugin-statusbar 2.4.2 "StatusBar"
cordova-plugin-whitelist 1.3.3 "Whitelist"

If you use @ionic-native/google-maps, please tell the package.json (only @ionic-native/core and @ionic-native/google-maps are fine mostly)

"@ionic-native/core": "^4.16.0",
"@ionic-native/google-maps": "^4.15.1",

Current behavior: No map is displayed. Tried both iphone, simulator and browser.

2 errors are shown: 1) Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:8080/plugins/cordova-plugin-googlemaps/www/promise-7.0.4.min.js.map 2) [Error] ERROR TypeError: undefined is not an object (evaluating 'map.getDiv') js_CordovaGoogleMaps-for-android_ios.js:839

By the way, using XCODE 10

Git: https://github.com/hkjeffchan/ionic_gmap_test

Thanks a lot!

hkjeffchan commented 5 years ago

Forgot to mention, the map is in the "About" tab.

hkjeffchan commented 5 years ago

Oops, I found the problem. Need to add size to the div....