View CreateMapContentView() { //Coordinates for the starting point of the map const double latitude = 41.788081; const double longitude = -87.831573; var location = new Position(latitude, longitude); var _map = new global::ExtendedMap.Forms.Plugin.Abstractions.ExtendedMap(MapSpan.FromCenterAndRadius(location, Distance.FromMiles(15))) { IsShowingUser = true }; _map.StyleId = "CustomMap"; _map.BindingContext = BindingContext; _map.SetBinding<ExtendedViewModel>(global::ExtendedMap.Forms.Plugin.Abstractions.ExtendedMap.CustomPinsProperty, x => x.SamplePins); var createMapContentView = new CustomMapContentView(_map); return createMapContentView; }
View CreateMapContentView() { //Coordinates for the starting point of the map const double latitude = 41.788081; const double longitude = -87.831573; var location = new Position(latitude, longitude); var _map = new global::ExtendedMap.Forms.Plugin.Abstractions.ExtendedMap(MapSpan.FromCenterAndRadius(location, Distance.FromMiles(15))) { IsShowingUser = true }; _map.StyleId = "CustomMap"; _map.BindingContext = BindingContext; _map.SetBinding <ExtendedViewModel>(global::ExtendedMap.Forms.Plugin.Abstractions.ExtendedMap.CustomPinsProperty, x => x.SamplePins); var createMapContentView = new CustomMapContentView(_map); return(createMapContentView); }