Fix: small mistakes
MODIFY
plugin.xml
plugin.xml
<?xml version='1.0' encoding='utf-8'?>
-<plugin id="cordova-plugin-googlemaps" version="2.2.6-beta-20180219-1115" 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.6-beta-20180220-0929" 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/Map.js
www/Map.js
@@ -96,8 +96,8 @@ Map.prototype.getMap = function(mapId, div, options) {
self.set("visible", options.visible === false ? false : true);
if (options.control) {
- this.set("myLocation", options.control.myLocation === true);
- this.set("myLocationButton", options.control.myLocationButton === true);
+ this.set("myLocation", options.controls.myLocation === true);
+ this.set("myLocationButton", options.controls.myLocationButton === true);
}
if (!common.isDom(div)) {
@@ -252,8 +252,8 @@ Map.prototype.setOptions = function(options) {
options = options || {};
if (options.control) {
- this.set("myLocation", options.control.myLocation === true);
- this.set("myLocationButton", options.control.myLocationButton === true);
+ this.set("myLocation", options.controls.myLocation === true);
+ this.set("myLocationButton", options.controls.myLocationButton === true);
}
if (options.camera) {
if (options.camera.latLng) {

Fix: small mistakes