Select to view content in your preferred language

silverlight maptips - doesnt always hide

663
2
12-02-2010 12:32 AM
AntonHughes
Emerging Contributor
Hi

I'm using the tooltip (see the following code):
<esri:GraphicsLayer ID="AtlasPoints" >
                
                <esri:GraphicsLayer.MapTip>
                    <Grid x:Name="tipGrid" IsHitTestVisible="True" x:Uid="tooltipGrid" esri:GraphicsLayer.MapTipHideDelay="00:00:0.4" >
                        <Border CornerRadius="2" BorderBrush="#FF222957" 
                                BorderThickness="1" Background="LightYellow">
                            <TextBlock x:Name="MapItemToolTip"  Margin="5" FontSize="10" Text="{Binding [MapItem].Name}" />            
                        </Border>
                    </Grid>
                </esri:GraphicsLayer.MapTip>
            </esri:GraphicsLayer>


When someone hovers over a map point the tooltip shows. However, when someone then clicks on a map point a popup window opens. And sometimes the tooltip remains, over top of the pop up window.

How can I ensure the tooltip is hidden when a map point is clicked?

Thanks
0 Kudos
2 Replies
JenniferNery
Esri Regular Contributor
Thank you for reporting this.

I was able to reproduce the issue. I found that if you have a MapTipHideDelay and your mouse entered the MapTip, this is when the MapTip remains open. When your mouse does not enter the MapTip, the MapTip hides as it should.  We'll try to get this fixed in future releases.

What you can do for now is either don't set a MapTipHideDelay or change the MapTip Visibility to Visible on layer's MouseEnter and  Collapsed on maptip's container object's (grid) MouseLeave.
0 Kudos
AntonHughes
Emerging Contributor
Thanks Jennifer,

Your work-around fixed the problem.
0 Kudos