roubachof / Sharpnado.Tabs

Pure MAUI and Xamarin.Forms Tabs, including fixed tabs, scrollable tabs, bottom tabs, badge, segmented control, custom tabs, button tabs, bendable tabs...
MIT License
507 stars 66 forks source link

[MAUI] Map not working properly #82

Closed K0Ma19 closed 5 months ago

K0Ma19 commented 1 year ago

Platform (please complete the following information):

When using Microsoft.Maui.Controls.Maps The map is not displayed on ios. On android it is displayed but not in full screen height

1.

<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             x:Class="RxLoyaltyMAUI.Views.ShopPage"
             xmlns:local="clr-namespace:RxLoyaltyMAUI.Views"
             xmlns:tabs="http://sharpnado.com"
             xmlns:controls="clr-namespace:RxLoyaltyMAUI.Views.Controls"
             Title="ShopPage">
    <ContentPage.Resources>
        <ResourceDictionary>
            <Style x:Key="BottomTab" TargetType="tabs:BottomTabItem">
                <Setter Property="SelectedTabColor" Value="Gray" />
                <Setter Property="UnselectedLabelColor" Value="#00928A" />
                <Setter Property="LabelSize" Value="36" />
                <Setter Property="FontFamily" Value="OpenSansExtraBold" />
            </Style>
        </ResourceDictionary>
    </ContentPage.Resources>

    <VerticalStackLayout>

        <tabs:TabHostView HeightRequest="40"
                          SelectedIndex="{Binding Source={x:Reference Switcher}, 
                                          Path=SelectedIndex, Mode=TwoWay}"
                          VerticalOptions="Center"
                            BackgroundColor="#F0F0F3"
                          x:Name="TabHost">
            <tabs:TabHostView.Tabs>
                <tabs:UnderlinedTabItem Style="{StaticResource TabStyle}" Label="На карте"
                                        IsSelected="True"
                                        >

                </tabs:UnderlinedTabItem>
                <tabs:UnderlinedTabItem Style="{StaticResource TabStyle}" Label="Список">

                </tabs:UnderlinedTabItem>
            </tabs:TabHostView.Tabs>
        </tabs:TabHostView>
        <tabs:ViewSwitcher x:Name="Switcher"
                           SelectedIndex="{Binding SelectedViewModelIndex, 
                                                   Mode=TwoWay}">
            <controls:ShopMap/>
            <controls:ShopList/>
        </tabs:ViewSwitcher>
    </VerticalStackLayout>
</ContentPage>
  1. <ContentView xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             x:Class="RxLoyaltyMAUI.Views.Controls.ShopMap"
              xmlns:maps="clr-namespace:Microsoft.Maui.Controls.Maps;assembly=Microsoft.Maui.Controls.Maps">
    <maps:Map/>
    </ContentView>
roubachof commented 1 year ago

Well it's a maui bug I'm afraid