Xamarin.CustomMapView.iOS 1.0.0

A Xamarin wrapper around Google Map APIs for iOS

Install-Package Xamarin.CustomMapView.iOS -Version 1.0.0
dotnet add package Xamarin.CustomMapView.iOS --version 1.0.0
<PackageReference Include="Xamarin.CustomMapView.iOS" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Xamarin.CustomMapView.iOS --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

NetworkManageriOS

A Xamarin wrapper around Google Map APIs for iOS

Usage:

using System;
using System.Collections.Generic;
using UIKit;
using CoreLocation;
using Google.Maps;
using Subsystems.CustomMapViewiOS.External;

Initialize

    var cameraPosition = CameraPosition.FromCamera(22.6789, 88.4567, 12);
    _mapViewProxy = new CMPMapViewProxy("AIzaSyB9V7YYORxaF4nfSHEZIBaPUwXk8uDkJos",
                                        View.Bounds, cameraPosition);
    _mapViewProxy.AddAsSubView(View);

SelectMarker

    var mar = new Marker();
    mar.Position = new CLLocationCoordinate2D(22.6789, 88.4567);
    mar.Title = "Home";
    _mapViewProxy.SelectMarker(mar);

AddMarkers

    var mar = new Marker();
    mar.Position = new CLLocationCoordinate2D(22.6789, 88.4567);
    mar.Title = "Home";

    var mar1 = new Marker();
    mar1.Position = new CLLocationCoordinate2D(22.6218, 88.4180);
    mar1.Title = "Old Home";

    _mapViewProxy.AddMarkers(new List<Marker>()
    {
       mar, mar1

    });

AddMarkersForPlacesAsync

_mapViewProxy.AddMarkersForPlacesAsync(new List<string>()
{

    "<Place_1>", "<Place_2>", "<Place_3>"

});

DrawRoutePolylinesAsync

_mapViewProxy.DrawRoutePolylinesAsync("<Place_1>", "<Place_2>", null, null);

FindDistancesAsync - signature

public async Task<JArray> FindDistancesAsync(List<string> startLocationsList,
                                             List<string> endLocationsList,
                                             Dictionary<string, string>
                                             additionalParametersDictionary);

GetPlaceDetailsAsync - signature

public async Task<Dictionary<string, object>> GetPlaceDetailsAsync(
                                                string placeIDString,
                                                Dictionary<string, string>
                                                additionalParametersDictionary);

GetPlacePhotoAsync - signature

public async Task GetPlacePhotoAsync(string placeIdString,
                                     PlacePhotoCallback
                                     photoCallback);

SearchForNearByPlaces - signature

public async Task SearchForNearByPlaces(string placeString,
                                        string typeString,
                                        CLLocationCoordinate2D location,
                                        double radius,
                                        Dictionary<string, string>
                                        additionalParametersDictionary,
                                        PlaceSearchCallback searchCallback);

NetworkManageriOS

A Xamarin wrapper around Google Map APIs for iOS

Usage:

using System;
using System.Collections.Generic;
using UIKit;
using CoreLocation;
using Google.Maps;
using Subsystems.CustomMapViewiOS.External;

Initialize

    var cameraPosition = CameraPosition.FromCamera(22.6789, 88.4567, 12);
    _mapViewProxy = new CMPMapViewProxy("AIzaSyB9V7YYORxaF4nfSHEZIBaPUwXk8uDkJos",
                                        View.Bounds, cameraPosition);
    _mapViewProxy.AddAsSubView(View);

SelectMarker

    var mar = new Marker();
    mar.Position = new CLLocationCoordinate2D(22.6789, 88.4567);
    mar.Title = "Home";
    _mapViewProxy.SelectMarker(mar);

AddMarkers

    var mar = new Marker();
    mar.Position = new CLLocationCoordinate2D(22.6789, 88.4567);
    mar.Title = "Home";

    var mar1 = new Marker();
    mar1.Position = new CLLocationCoordinate2D(22.6218, 88.4180);
    mar1.Title = "Old Home";

    _mapViewProxy.AddMarkers(new List<Marker>()
    {
       mar, mar1

    });

AddMarkersForPlacesAsync

_mapViewProxy.AddMarkersForPlacesAsync(new List<string>()
{

    "<Place_1>", "<Place_2>", "<Place_3>"

});

DrawRoutePolylinesAsync

_mapViewProxy.DrawRoutePolylinesAsync("<Place_1>", "<Place_2>", null, null);

FindDistancesAsync - signature

public async Task<JArray> FindDistancesAsync(List<string> startLocationsList,
                                             List<string> endLocationsList,
                                             Dictionary<string, string>
                                             additionalParametersDictionary);

GetPlaceDetailsAsync - signature

public async Task<Dictionary<string, object>> GetPlaceDetailsAsync(
                                                string placeIDString,
                                                Dictionary<string, string>
                                                additionalParametersDictionary);

GetPlacePhotoAsync - signature

public async Task GetPlacePhotoAsync(string placeIdString,
                                     PlacePhotoCallback
                                     photoCallback);

SearchForNearByPlaces - signature

public async Task SearchForNearByPlaces(string placeString,
                                        string typeString,
                                        CLLocationCoordinate2D location,
                                        double radius,
                                        Dictionary<string, string>
                                        additionalParametersDictionary,
                                        PlaceSearchCallback searchCallback);

Release Notes

1. Initial release for MapView omponent for iOS
2. Wraps Google Map view sdk
3. Not fully Thread safe

Version History

Version Downloads Last updated
1.0.0 130 10/25/2018