Add `getDefaultViewport()` and `getMetadata()` methods to KmlOverlay
MODIFY
plugin.xml
plugin.xml
<?xml version='1.0' encoding='utf-8'?>
-<plugin id="cordova-plugin-googlemaps" version="2.2.0-beta-20180127-0000" 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.2.0-beta-20180127-0006" 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="BaseClass" src="www/BaseClass.js">
<runs />

MODIFY
www/KmlOverlay.js
www/KmlOverlay.js
@@ -14,7 +14,6 @@ var KmlOverlay = function(map, kmlId, camera, kmlData, kmlOverlayOptions) {
BaseClass.apply(this);
var self = this;
- self._overlays = [];
//self.set("visible", kmlOverlayOptions.visible === undefined ? true : kmlOverlayOptions.visible);
//self.set("zIndex", kmlOverlayOptions.zIndex || 0);
Object.defineProperty(self, "_isReady", {
@@ -249,8 +248,11 @@ KmlOverlay.prototype.getHashCode = function() {
return this.hashCode;
};
-KmlOverlay.prototype.getOverlays = function() {
- return this._overlays;
+KmlOverlay.prototype.getDefaultViewport = function() {
+ return this.camera;
+};
+KmlOverlay.prototype.getMetadata = function() {
+ return this.kmlData;
};
KmlOverlay.prototype.getMap = function() {
return this.map;

Add `getDefaultViewport()` and `getMetadata()` methods to KmlOverlay