SfMaps_TooltipOpening Cast Invalid Exception

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

2 Replies 1 reply marked as answer

RS Ramya Soundar Rajan Syncfusion Team October 23, 2020 02:26 PM UTC

Hi Jonty Stephan, 
 
We would like to let you know that we have already noticed and fixed the reported issue in Android & iOS. The fix will be included in our upcoming weekly NuGet which is expected to be rolled on October 27, 2020. We appreciate your patience until then. 
 
Regards, 
Ramya S 



SS Sridevi Sivakumar Syncfusion Team October 27, 2020 06:16 AM UTC

Hi  Jonty Stephan,

We are glad to announce that our 
weekly NuGet was rolled out today and fix for the reported issue was included in the weekly NuGet.

NuGet Version: 18.3.0.44

We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance.

Regards,
Sridevi S
. 


Marked as answer
Loader.
Up arrow icon