update: (iOS) WkWebView displays black background when you use map.setDiv("new_canvas") first time.
MODIFY
package.json
package.json
{
"name": "cordova-plugin-googlemaps",
- "version": "2.5.1-beta-20190205-1831",
+ "version": "2.5.1-beta-20190210-0024",
"description": "Google Maps native SDK for Android and iOS, and Google Maps JavaScript API v3 for browser.",
"cordova": {
"id": "cordova-plugin-googlemaps",

MODIFY
www/Map.js
www/Map.js
@@ -75,6 +75,12 @@ utils.extend(Map, Overlay);
* @desc Recalculate the position of HTML elements
*/
Map.prototype.refreshLayout = function() {
+ // Webkit redraw mandatory
+ // http://stackoverflow.com/a/3485654/697856
+ document.body.style.display = 'none';
+ document.body.offsetHeight;
+ document.body.style.display = '';
+
this.exec.call(this, null, null, this.__pgmId, 'resizeMap', []);
};

update: (iOS) WkWebView displays black background when you use map.setDiv("new_canvas") first time.