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,