SfMaps Tooltips open programmatially

Hi,

Is there a way to open and display tooltips for each marker on an SfMaps control? Any suggestions would be greatly appreciated.

Regards,

5 Replies 1 reply marked as answer

SS Sridevi Sivakumar Syncfusion Team March 16, 2021 12:36 PM UTC

Hi Jano Moller,

We have checked the reported query and we don't have support to open the tooltip programmatically in SfMaps. We can open and show the marker tooltip by tapping the marker. Please refer to the below documentation link to show the tooltip in SfMaps Marker

https://help.syncfusion.com/xamarin/maps/tooltip#tooltip-for-markers

Let us know if you need any further assistance.

Regards,
Sridevi S. 



JA Jano March 17, 2021 08:18 AM UTC

Hi Sridevi,

Thank you for your quick response. Luckily I came up with a different solution to a problem I was having before, which doesn't require this functionality.

Regards,
Jano


SS Sridevi Sivakumar Syncfusion Team March 18, 2021 06:37 AM UTC

Hi Jano Moller,

Thanks for your update.

Let us know if you need any further assistance.

Regards,
Sridevi S. 



JS Jonty Stephan July 12, 2021 01:16 PM UTC

You can show a tooltip programmatically using the ImageryLayer_MarkerSelected event:


imageryLayer.MarkerSettings.TooltipSettings.ShowTooltip = true;

imageryLayer.MarkerSettings.TooltipSettings.TooltipTemplate = new DataTemplate(() =>

{

    StackLayout tipLayout = new StackLayout();

    tipLayout.HorizontalOptions = LayoutOptions.Center;

    tipLayout.VerticalOptions = LayoutOptions.Center;

    tipLayout.Padding = 0;

    tipLayout.Margin = 0;


    Label mylabel = new Label();

    mylabel.Text = e.MapMarker.Label;

    tipLayout.Children.Add(mylabel);


    return tipLayout;

});



Marked as answer

SS Sridevi Sivakumar Syncfusion Team July 13, 2021 11:24 AM UTC

Hi Jano Moller,

We are glad that you have achieved your requirement, but the MarkerSelected will be occurred when you tap the marker. As per our previous update, we can enable and show the marker tooltip by tapping the marker.

Let us know if you need any further assistance.

Regards,
Sridevi S.
 
 


Loader.
Up arrow icon