Hi there,
I have the following SfMap (18.2.0.44) with OSM ImageLayer utilizing the TooltipOpening event. The marker data bound to the ImageLayer is a CustomMarker class of MapMarker type.
<maps:SfMaps TooltipOpening="SfMaps_TooltipOpening">
<maps:SfMaps.Layers>
<maps:ImageryLayer x:Name="imageryLayer">
<maps:ImageryLayer.MarkerSettings>
<maps:MapMarkerSetting>
<maps:MapMarkerSetting.TooltipSettings>
<maps:TooltipSetting Duration="3" ValuePath="Label" />
</maps:MapMarkerSetting.TooltipSettings>
</maps:MapMarkerSetting>
</maps:ImageryLayer.MarkerSettings>
</maps:ImageryLayer>
</maps:SfMaps.Layers>
</maps:SfMaps>
When the TooltipOpening event fires, the cast below throws and exception. It should be casting as a MapMarker however it is returning as a Syncfusion.SfMaps.XForms.Droid.MapMarkerMapping instead. Here it the TooltipOpening event and the debugging and exception screenshots are attached..
private void SfMaps_TooltipOpening(object sender, TooltipOpeningEventArgs e)
{
if (e.Data != null)
{
var data = (MapMarker)e.Data;
}
}
Attachment:
SfMaps_b349c3da.rar