Set default value range to heading and tilt
MODIFY
plugin.xml
plugin.xml
<?xml version='1.0' encoding='utf-8'?>
-<plugin id="cordova-plugin-googlemaps" version="2.6.3-20190731-1809" 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.6.3-20190808-1420" 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" />
<js-module name="BaseClass" src="www/BaseClass.js">

MODIFY
www/Map.js
www/Map.js
@@ -481,6 +481,12 @@ Map.prototype.animateCamera = function(cameraPosition, callback) {
return Promise.reject(error);
}
}
+ if ("heading" in cameraPosition) {
+ cameraPosition.heading = cameraPosition.heading % 360;
+ }
+ if ("tilt" in cameraPosition) {
+ cameraPosition.tilt = Math.min(Math.max(0, cameraPosition.tilt), 90);
+ }
// if (!('padding' in cameraPosition)) {
// cameraPosition.padding = 10;
// }

Set default value range to heading and tilt
https://github.com/mapsplugin/cordova-plugin-googlemaps/issues/2664