cordova-plugin-googlemaps: Map not load, white-screen only

I’m submitting a …

  • question
  • any problem or bug report
  • feature request

If you choose ‘problem or bug report’, please select OS:

  • Android
  • iOS

cordova information: (run $> cordova plugin list)

cordova-plugin-googlemaps 2.2.9 "cordova-plugin-googlemaps"

Current behavior: Plugin version 2.2.9 has not allow me to load map in HTML DOM. Initially it throwing error “Uncaught (in promise) TypeError: Cannot read property ‘size’ of undefined” Please see attached file for it screen shot 2018-05-03 at 12 58 08 am

I did simple following in code:

HTML:

<div id="googlemap">

JS:

var div = document.getElementById("googlemap");
 map = plugin.google.maps.Map.getMap(div);

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 20 (10 by maintainers)

Most upvoted comments

Yes. Map is loading after add some CSS in map container.

Thank you man for your valuable input.

After modifying <div id="googlemap"> to <div id="googlemap" style="width:500px;height:500px">, then just run it.