SfMaps UWP MarkerTemplate Not Working

Dear Syncfusion Support,

I am using the SfMaps control.Syncfusion version 19.0.1.54.Markes data can be binded smoothly on IOS and Android, but not on UWP platform. I've searched for the error many times but could not find it. I request your help on this issue. I am writing the codes I use below.

XAML :

<maps:SfMaps Grid.Row="0" >
  <maps:SfMaps.Layers>
      <maps:ImageryLayer Markers="{Binding Locations}"  
                                         MarkerSelected="ImageryLayer_MarkerSelected"
                                         GeoCoordinates="{Binding DefaultLocation}"  
                                         DistanceType="KiloMeter"
                                         Radius="5">
       <maps:ImageryLayer.MarkerTemplate>
            <DataTemplate>
                 <StackLayout HeightRequest="100">
                    <ImageButton BackgroundColor="White" 
                                            VerticalOptions="Center"
                                            HorizontalOptions="Center" 
                                            Source="{Binding Icon}" 
                                            Scale="1" 
                                            Padding="15" 
                                            CornerRadius="25" 
                                            IsEnabled="False"  />

                                                    <Frame BorderColor="#50b571" 
                                                           Padding="5"
                                                           HeightRequest="20">

                                                        <Label Text="{Binding Label}"  
                                                                    TextColor="#5f5f5f" 
                                                                    HorizontalOptions="Center" 
                                                                    VerticalOptions="Center" 
                                                                    VerticalTextAlignment="Center"
                                                                    FontSize="10" 
                                                                    FontAttributes="Bold"  />
                                                    </Frame>
                                                </StackLayout>
                                            </DataTemplate>
                                        </maps:ImageryLayer.MarkerTemplate>
                                    </maps:ImageryLayer>
                                </maps:SfMaps.Layers>
                            </maps:SfMaps>

ViewModel :

 private ObservableCollection<MapMarker> _Locations = new ObservableCollection<MapMarker>();
        public ObservableCollection<MapMarker> Locations
        {
            get { return _Locations; }
            set
            {
                _Locations = value;
                RaisePropertyChanged();
            }
        }

Any suggestion as to how I should approach this would be greatly appreciated.

Regards,

1 Reply 1 reply marked as answer

RS Ramya Soundar Rajan Syncfusion Team April 2, 2021 12:18 PM UTC

Hi Mesut Solak, 
 
Greetings from Syncfusion. 
 
We checked the reported problem that marker data not binded smoothly in UWP platform with the provided code snippet in v19.1.0.54. But it’s working fine in our side. 
  
 
So, could you please check the issue with the attached sample and let us know whether it is reproduced or not?     
   
Can you please provide the detailed information on the reported query since we were unaware of your exact use case of your requirement?  
   
·       Can you please share the issue reproducing video?  
·       If the issue is not reproduced in the above sample, please revert us by modifying the sample based on your application along with the replication procedure.  
·       Can you provide the overall page structure used in your project?  
·       Can you share the Xamarin.Forms, VS version, machine configuration details?  
 
Regards, 
Ramya S 


Marked as answer
Loader.
Up arrow icon