Skip to content

Commit 7a3727c

Browse files
author
Hirbod
committed
Removed version check, revert to iOS SDK 1.9.2
Removed version check for faster loading, revert to iOS SDK 1.9.2 as I included the Google Maps 4 Work version by accident. Also added debug-check on setIcon function
1 parent ace19f8 commit 7a3727c

3 files changed

Lines changed: 7 additions & 4 deletions

File tree

plugin.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,6 @@
186186
</array>
187187
</config-file>
188188

189-
<dependency id="com.googlemaps.ios" url="https://github.com/nightstomp/googlemaps-ios-sdk-for-phonegap" commit="master" />
189+
<dependency id="com.googlemaps.ios" url="https://github.com/wf9a5m75/googlemaps-ios-sdk-for-phonegap" commit="master" />
190190
</platform>
191191
</plugin>

src/ios/GoogleMaps/GoogleMaps.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ - (void)pluginInitialize
1616
self.mapCtrl.isFullScreen = YES;
1717
self.locationCommandQueue = [[NSMutableArray alloc] init];
1818

19-
[self versionCheck];
19+
//[self versionCheck];
2020

2121

2222
self.pluginLayer = [[MyPluginLayer alloc] initWithFrame:self.webView.frame];
@@ -72,7 +72,7 @@ - (void)pluginInitialize
7272
*/
7373
-(void)versionCheck
7474
{
75-
NSString *PLUGIN_VERSION = @"1.2.5";
75+
NSString *PLUGIN_VERSION = @"1.3.0";
7676
NSLog(@"This app uses phonegap-googlemaps-plugin version %@", PLUGIN_VERSION);
7777

7878
if ([PluginUtil isInDebugMode] == NO || [PluginUtil isIOS7_OR_OVER] == NO) {

src/ios/GoogleMaps/Marker.m

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,10 @@ -(void)setBounceAnimation_:(GMSMarker *)marker pluginResult:(CDVPluginResult *)p
557557
-(void)setIcon_:(GMSMarker *)marker iconProperty:(NSDictionary *)iconProperty
558558
pluginResult:(CDVPluginResult *)pluginResult
559559
callbackId:(NSString*)callbackId {
560-
NSLog(@"---- setIcon_");
560+
561+
if (self.mapCtrl.debuggable) {
562+
NSLog(@"---- setIcon_");
563+
}
561564
NSString *iconPath = nil;
562565
CGFloat width = 0;
563566
CGFloat height = 0;

0 commit comments

Comments
 (0)