Skip to content

Commit

Permalink
[google][maps] Updated to version 2.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
SotoiGhost committed Sep 27, 2016
1 parent 40bdf46 commit 4110d55
Show file tree
Hide file tree
Showing 6 changed files with 45 additions and 14 deletions.
4 changes: 2 additions & 2 deletions Google.Maps/component/component.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: 1.13.2.2
version: 2.1.0.0
name: Google Maps for iOS
id: googleiosmaps
publisher: Xamarin Inc.
Expand All @@ -15,7 +15,7 @@ libraries:
is_shell: true
packages:
ios-unified:
- Xamarin.Google.iOS.Maps, Version=1.13.2.2
- Xamarin.Google.iOS.Maps, Version=2.1.0.0
samples:
- name: "Google Maps Sample"
path: ../samples/GoogleMapsSample/GoogleMapsSample.sln
Expand Down
6 changes: 3 additions & 3 deletions Google.Maps/externals/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ platform :ios, '7.0'
install! 'cocoapods', :integrate_targets => false

target 'GoogleMaps' do
pod 'GoogleMaps', '2.0.1'
pod 'GooglePlaces', '2.0.1'
pod 'GooglePlacePicker', '2.0.1'
pod 'GoogleMaps', '2.1.0'
pod 'GooglePlaces', '2.1.0'
pod 'GooglePlacePicker', '2.1.0'
end
2 changes: 1 addition & 1 deletion Google.Maps/nuget/Xamarin.Google.iOS.Maps.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<metadata>
<id>Xamarin.Google.iOS.Maps</id>
<title>Google APIs Maps iOS Library</title>
<version>1.13.2.2</version>
<version>2.1.0.0</version>
<authors>Xamarin Inc.</authors>
<owners>Xamarin Inc.</owners>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ public partial class AppDelegate : UIApplicationDelegate
DVCMenu dvc;
UINavigationController navController;

//const string MapsApiKey = "<Get your ID at https://code.google.com/apis/console/>";
const string MapsApiKey = "AIzaSyD73QX07I6Wni2y0sIg-H7iTDl0eZ9i93w";
const string MapsApiKey = "<Get your ID at https://code.google.com/apis/console/>";

//
// This method is invoked when the application has loaded and is ready to run. In this
Expand Down
32 changes: 32 additions & 0 deletions Google.Maps/source/Google.Maps/ApiDefinition.cs
Original file line number Diff line number Diff line change
Expand Up @@ -835,6 +835,24 @@ interface MapLayer
double CameraViewingAngle { get; set; }
}

// @interface GMSMapStyle : NSObject
[DisableDefaultCtor]
[BaseType (typeof (NSObject), Name = "GMSMapStyle")]
interface MapStyle
{
// + (GMS_NULLABLE_INSTANCETYPE)styleWithJSONString:(NSString *)style error:(NSError* __autoreleasing GMS_NULLABLE_PTR*)error;
[Static]
[return: NullAllowed]
[Export ("styleWithJSONString:error:")]
MapStyle FromJson (string jsonStyle, [NullAllowed] NSError error);

// (GMS_NULLABLE_INSTANCETYPE) styleWithContentsOfFileURL:(NSURL*)fileURL error:(NSError* __autoreleasing GMS_NULLABLE_PTR*)error;
[Static]
[return: NullAllowed]
[Export ("styleWithContentsOfFileURL:error:")]
MapStyle FromUrl (NSUrl fileUrl, [NullAllowed] NSError error);
}

interface IMapViewDelegate
{

Expand Down Expand Up @@ -873,6 +891,10 @@ interface MapViewDelegate
[Export ("mapView:didTapOverlay:"), EventArgs ("GMSOverlayEvent"), EventName ("OverlayTapped")]
void DidTapOverlay (MapView mapView, Overlay overlay);

// - (void)mapView:(GMSMapView *)mapView didTapPOIWithPlaceID:(NSString*)placeID name:(NSString*)name location:(CLLocationCoordinate2D)location;
[Export ("mapView:didTapPOIWithPlaceID:name:location:"), EventArgs ("GMSPoiWithPlaceIdEvent"), EventName ("PoiWithPlaceIdTapped")]
void DidTapPoiWithPlaceId (MapView mapView, string placeId, string name, CLLocationCoordinate2D location);

[Export ("mapView:markerInfoWindow:"), DelegateName ("GMSInfoFor"), DefaultValue (null)]
UIView MarkerInfoWindow (MapView mapView, Marker marker);

Expand Down Expand Up @@ -943,6 +965,11 @@ interface MapView
[Export ("mapType", ArgumentSemantic.Assign)]
MapViewType MapType { get; set; }

// @property(nonatomic, strong, nullable) GMSMapStyle *mapStyle;
[NullAllowed]
[Export ("mapStyle", ArgumentSemantic.Strong)]
MapStyle MapStyle { get; set; }

[Export ("minZoom", ArgumentSemantic.Assign)]
float MinZoom { get; }

Expand Down Expand Up @@ -999,6 +1026,10 @@ interface MapView

[Export ("moveCamera:")]
void MoveCamera (CameraUpdate update);

// - (BOOL)areEqualForRenderingPosition:(GMSCameraPosition *)position position:(GMSCameraPosition*)otherPosition;
[Export ("areEqualForRenderingPosition:position:")]
bool Equals (CameraPosition position, CameraPosition otherPosition);
}

[BaseType (typeof (MapView))]
Expand Down Expand Up @@ -1041,6 +1072,7 @@ interface Marker
UIImage Icon { get; set; }

// @property(nonatomic, strong) UIView *iconView;
[NullAllowed]
[Export ("iconView", ArgumentSemantic.Strong)]
UIView IconView { get; set; }

Expand Down
12 changes: 6 additions & 6 deletions Google.Maps/source/Google.Maps/Google.Maps.targets
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,22 @@

<PropertyGroup>
<_GoogleMapsAssemblyName>Google.Maps, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null</_GoogleMapsAssemblyName>
<_GoogleMapsItemsFolder>GMps-2.0.1</_GoogleMapsItemsFolder>
<_GooglePlacesItemsFolder>GPlcs-2.0.1</_GooglePlacesItemsFolder>
<_GooglePlacePickerItemsFolder>GPlcP-2.0.1</_GooglePlacePickerItemsFolder>
<_GoogleMapsItemsFolder>GMps-2.1.0</_GoogleMapsItemsFolder>
<_GooglePlacesItemsFolder>GPlcs-2.1.0</_GooglePlacesItemsFolder>
<_GooglePlacePickerItemsFolder>GPlcP-2.1.0</_GooglePlacePickerItemsFolder>
</PropertyGroup>

<ItemGroup Condition="('$(OutputType)'!='Library' OR '$(IsAppExtension)'=='True')">
<XamarinBuildDownload Include="$(_GoogleMapsItemsFolder)">
<Url>https://www.gstatic.com/cpdc/5a212b0fa429156f-GoogleMaps-2.0.1.tar.gz</Url>
<Url>https://dl.google.com/dl/cpdc/7afc1a08cd75f719/GoogleMaps-2.1.0.tar.gz</Url>
<Kind>Tgz</Kind>
</XamarinBuildDownload>
<XamarinBuildDownload Include="$(_GooglePlacesItemsFolder)">
<Url>https://www.gstatic.com/cpdc/2b9e8b99fc05d124-GooglePlaces-2.0.1.tar.gz</Url>
<Url>https://dl.google.com/dl/cpdc/1204948f0f6ac434/GooglePlaces-2.1.0.tar.gz</Url>
<Kind>Tgz</Kind>
</XamarinBuildDownload>
<XamarinBuildDownload Include="$(_GooglePlacePickerItemsFolder)">
<Url>https://www.gstatic.com/cpdc/58e6bc3d698639c1-GooglePlacePicker-2.0.1.tar.gz</Url>
<Url>https://dl.google.com/dl/cpdc/0b221e876f036871/GooglePlacePicker-2.1.0.tar.gz</Url>
<Kind>Tgz</Kind>
</XamarinBuildDownload>
<XamarinBuildRestoreResources Include="_GoogleMapsItems" />
Expand Down

0 comments on commit 4110d55

Please sign in to comment.