1using System.Threading.Tasks;
3using Mapsui.Extensions;
4using Mapsui.Projections;
18 InitializeComponent();
19 viewModel.MapControl = this.GeoMapControl;
20 this.BindingContext = viewModel;
21 this.GeoMapControl.Map.Navigator.RotationLock =
true;
22 this.GeoMapControl.Map?.Layers.Add(OpenStreetMap.CreateTileLayer());
30 this.GeoMapControl.Map?.Navigator.CenterOn(mercator);
31 this.GeoMapControl.Map?.Navigator.ZoomTo(1000);
33 return base.OnAppearingAsync();
double Longitude
Longitude in degrees.
double Latitude
Latitude in degrees.