Fix: (Browser)  does not work.
MODIFY
README.md
README.md
## Release Notes
- **v2.5.0**
- Add: (Android/iOS/Browser) `map.addFusionTableOverlay()`
-
- Add: (Android/iOS/Browser) Support `promise` for `TileOverlayOptions.getTile`. You must return new URL in 5 seconds.
```js
var tileOverlay = map.addTileOverlay({
```
- Add: (Android/iOS/Browser) `TileOverlayOptions.getTile` can return **base64 encoded image(png,gif,jpeg)**.
-
- Add: (Android/iOS/Browser) `BaseClass.onThrottled()/addThrottledEventListener()/hasEventListener()` are added.
-
- Fix: (Android) Can not load icon image file for Marker after external link opened.
+ - Fix: (Browser) `MapOptions.styles` does not work.
+ - Update: (Android) Set `transparent` backgroundColor at `onResume()` because some other plugins change background color.
- **v2.4.6**
- Fix: (iOS) Only `src/ios/check_sdk_version.js` error.

MODIFY
plugin.xml
plugin.xml
<?xml version='1.0' encoding='utf-8'?>
-<plugin id="cordova-plugin-googlemaps" version="2.5.0-beta-20180928-1512" 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.5.0-beta-20181003-0957" 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" />
<asset src="www/promise-7.0.4.min.js.map" target="promise-7.0.4.min.js.map" />

MODIFY
src/browser/PluginMap.js
src/browser/PluginMap.js
@@ -104,6 +104,9 @@ function PluginMap(mapId, options, mapDivId) {
if (options.mapType) {
mapInitOptions.mapTypeId = MAP_TYPES[options.mapType];
}
+ if (options.styles) {
+ mapInitOptions.styles = JSON.parse(options.styles);
+ }
if (options.controls) {
if (options.controls.zoom !== undefined) {
@@ -119,6 +122,7 @@ function PluginMap(mapId, options, mapDivId) {
}
}
}
+ console.log(mapInitOptions);
var map = new google.maps.Map(container, mapInitOptions);
map.mapTypes = mapTypeReg;
@@ -259,6 +263,9 @@ PluginMap.prototype.setOptions = function(onSuccess, onError, args) {
if (options.mapType) {
mapInitOptions.mapTypeId = MAP_TYPES[options.mapType];
}
+ if (options.styles) {
+ mapInitOptions.styles = JSON.parse(options.styles);
+ }
if (options.controls) {
if (options.controls.zoom !== undefined) {

Fix: (Browser)  does not work.