(browser) plugin does not read pereferences.zoom.minZoom correctly
(iOS) can not load image file if webpage is hosted on "ionic://"
MODIFY
package.json
package.json
{
"name": "cordova-plugin-googlemaps",
- "version": "2.5.1-beta-20190210-0024",
+ "version": "2.5.1-beta-20190213-1639",
"description": "Google Maps native SDK for Android and iOS, and Google Maps JavaScript API v3 for browser.",
"cordova": {
"id": "cordova-plugin-googlemaps",

MODIFY
src/browser/PluginMap.js
src/browser/PluginMap.js
@@ -115,7 +115,7 @@ function PluginMap(mapId, options) {
}
if (options.preferences) {
if (options.preferences.zoom) {
- mapInitOptions.minZoom = Math.max(options.preferences.zoom || 2, 2);
+ mapInitOptions.minZoom = options.preferences.zoom.minZoom;
if (options.preferences.zoom.maxZoom) {
mapInitOptions.maxZoom = options.preferences.zoom.maxZoom;
}

MODIFY
src/ios/GoogleMaps/PluginGroundOverlay.m
src/ios/GoogleMaps/PluginGroundOverlay.m
NSBundle *mainBundle = [NSBundle mainBundle];
NSString *wwwPath = [mainBundle pathForResource:@"www/cordova" ofType:@"js"];
wwwPath = [wwwPath stringByReplacingOccurrencesOfString:@"/cordova.js" withString:@""];
+ if ([iconPath containsString:@"assets/"]) {
+ iconPath = [iconPath regReplace:@"^.*assets/" replaceTxt:[NSString stringWithFormat:@"%@/assets/", wwwPath] options:NSRegularExpressionCaseInsensitive];
+ }
iconPath = [iconPath stringByReplacingOccurrencesOfString:@"http://localhost:8080" withString: wwwPath];
if ([iconPath hasPrefix:@"file://"] || [iconPath hasPrefix:@"/"]) {

MODIFY
src/ios/GoogleMaps/PluginMarker.m
src/ios/GoogleMaps/PluginMarker.m
iconProperty = [NSMutableDictionary dictionary];
}
[iconProperty setObject:animation forKey:@"animation"];
- NSLog(@"--->animation = %@", animation);
+ //NSLog(@"--->animation = %@", animation);
}
if ([json valueForKey:@"infoWindowAnchor"]) {
NSBundle *mainBundle = [NSBundle mainBundle];
NSString *wwwPath = [mainBundle pathForResource:@"www/cordova" ofType:@"js"];
wwwPath = [wwwPath stringByReplacingOccurrencesOfString:@"/cordova.js" withString:@""];
+ if ([urlStr containsString:@"assets/"]) {
+ urlStr = [urlStr regReplace:@"^.*assets" replaceTxt:[NSString stringWithFormat:@"%@/assets/", wwwPath] options:NSRegularExpressionCaseInsensitive];
+ }
urlStr = [urlStr stringByReplacingOccurrencesOfString:@"http://localhost:8080" withString: wwwPath];
if ([urlStr hasPrefix:@"file:"] || [urlStr hasPrefix:@"/"]) {

- (browser) plugin does not read pereferences.zoom.minZoom correctly
- (iOS) can not load image file if webpage is hosted on "ionic://"