diff --git a/Classes/TiGooglemapsPolygonProxy.m b/Classes/TiGooglemapsPolygonProxy.m index 732fd33..59d954b 100644 --- a/Classes/TiGooglemapsPolygonProxy.m +++ b/Classes/TiGooglemapsPolygonProxy.m @@ -132,8 +132,8 @@ - (void)setHoles:(id)value [path insertCoordinate:CLLocationCoordinate2DMake(latitude, longitude) atIndex:idx]; } else if ([point isKindOfClass:[NSArray class]]) { - CLLocationDegrees latitude = [TiUtils doubleValue:[point objectAtIndex:0]]; - CLLocationDegrees longitude = [TiUtils doubleValue:[point objectAtIndex:1]]; + CLLocationDegrees latitude = [TiUtils doubleValue:[point objectAtIndex:1]]; + CLLocationDegrees longitude = [TiUtils doubleValue:[point objectAtIndex:0]]; [path insertCoordinate:CLLocationCoordinate2DMake(latitude, longitude) atIndex:idx]; } diff --git a/README.md b/README.md index e2e8b74..c8be4b6 100644 --- a/README.md +++ b/README.md @@ -590,8 +590,8 @@ const polygon = maps.createPolygon({ holes: [ { latitude: -32.95785, longitude: 115.86234 - }, [ -32.95785, 115.86234 ] ], // Important: The longitude is at index 1 and the latitude at index 0. - // This will be deprecated in future releases to align with the other behaviors + }, [ -32.95785, 115.86234 ] ], // Important: The longitude is at index 0 and the latitude at index 1. + // This has been changed in v6.1.2 of the module to align with the other APIs! zIndex: 10 }); mapView.addPolygon(polygon); diff --git a/manifest b/manifest index 50f8d90..13d1027 100644 --- a/manifest +++ b/manifest @@ -2,7 +2,7 @@ # this is your module manifest and used by Titanium # during compilation, packaging, distribution, etc. # -version: 6.1.1 +version: 6.1.2 apiversion: 2 mac: false architectures: armv7 arm64 i386 x86_64