<Grid x:Name="MainGrid" BackgroundColor="White">
<maps:SfMaps x:Name="Maps"
HorizontalOptions="FillAndExpand"
VerticalOptions="FillAndExpand"
ZoomLevel="6">
<maps:SfMaps.Layers>
<maps:ImageryLayer x:Name="MapsLayer"
LayerType="OSM"
ZoomLevelChanging="MapsLayer_ZoomLevelChanging">
</maps:ImageryLayer>
</maps:SfMaps.Layers>
</maps:SfMaps>
</Grid> |
private void MapsLayer_ZoomLevelChanging(object sender, ZoomLevelChangingEventArgs e)
{
if (e.CurrentLevel < 6)
{
e.Cancel = true;
}
} |