(Browser) Fix: Polygon.holes property has not implemented
MODIFY
plugin.xml
plugin.xml
<?xml version='1.0' encoding='utf-8'?>
-<plugin id="cordova-plugin-googlemaps" version="2.4.3" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
+<plugin id="cordova-plugin-googlemaps" version="2.4.4-beta-20180912-1209" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
<name>cordova-plugin-googlemaps</name>
<js-module name="Promise" src="www/Promise.js">
<runs/>

MODIFY
src/browser/PluginPolygon.js
src/browser/PluginPolygon.js
@@ -35,6 +35,16 @@ PluginPolygon.prototype._create = function(onSuccess, onError, args) {
strokePath.push(new google.maps.LatLng(point.lat, point.lng));
});
polygonOpts.paths.push(strokePath);
+
+ if (Array.isArray(pluginOptions.holes)) {
+ pluginOptions.holes.forEach(function(hole) {
+ var holeMvc = new google.maps.MVCArray();
+ hole.forEach(function(vertix) {
+ holeMvc.push(new google.maps.LatLng(vertix.lat, vertix.lng));
+ });
+ polygonOpts.paths.push(holeMvc);
+ });
+ }
}
if (Array.isArray(pluginOptions.strokeColor)) {
polygonOpts.strokeColor = 'rgb(' + pluginOptions.strokeColor[0] + ',' + pluginOptions.strokeColor[1] + ',' + pluginOptions.strokeColor[2] + ')';

(Browser) Fix: Polygon.holes property has not implemented