Select to view content in your preferred language

customized maptip with buttons

935
6
04-01-2011 09:03 AM
ThaoNguyen
Emerging Contributor
I want to add some buttons to my graphic layer maptip.  I am able to do this, but the problem I have is I cannot move the mouse to the created buttons inside my MapTip because when I move my mouse toward buttons, the maptip disappears.  Is there a way for me to set the delay ?
I read another post mentioned about MapTipHideDelay, but can't find this property at all!

Thanks!
0 Kudos
6 Replies
HeatherGonzago
Esri Contributor
Take a look at http://forums.esri.com/Thread.asp?c=158&f=2455&t=298745.

Morten talks about this a bit and states specifically that the maptips do not support "freezing".
0 Kudos
ThaoNguyen
Emerging Contributor
Take a look at http://forums.esri.com/Thread.asp?c=158&f=2455&t=298745.

Morten talks about this a bit and states specifically that the maptips do not support "freezing".


So, is there another way to do this?  I looked at InfoWindow, but it is for mouse click event and I want mouse over event.
0 Kudos
ThaoNguyen
Emerging Contributor
So, is there another way to do this?  I looked at InfoWindow, but it is for mouse click event and I want mouse over event.


Ah, I just tried MouseEnter event for GraphicLayer and display InfoWindow.  It works.  However, I would like to see if there is a better option.  I just tried a quick test, other things I need to handle such as when to hide InfoWindow....
and there are other things I need to fix because it overwrites my drawing event :(, can't draw anymore.
0 Kudos
ThaoNguyen
Emerging Contributor
Take a look at http://forums.esri.com/Thread.asp?c=158&f=2455&t=298745.

Morten talks about this a bit and states specifically that the maptips do not support "freezing".


Will this be available in next release?  I think to have a tip delay time would be very useful.
0 Kudos
DominiqueBroux
Esri Frequent Contributor
I read another post mentioned about MapTipHideDelay, but can't find this property at all!

MapTipHideDelay is an attached property owned by the GraphicsLayer class and can be set to the maptip in order to define a hide delay.
There is a sample here : http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#GraphicsMapTip

the XAML code looks like:
 
          <esri:GraphicsLayer ID="StatesGraphicsLayer">
                <esri:GraphicsLayer.MapTip>
                    <Border esri:GraphicsLayer.MapTipHideDelay="00:00:01.5" CornerRadius="10" BorderBrush="#FF222957" BorderThickness="3" Margin="0,0,15,15"> .......
 
 
0 Kudos
ThaoNguyen
Emerging Contributor
MapTipHideDelay is an attached property owned by the GraphicsLayer class and can be set to the maptip in order to define a hide delay.
There is a sample here : http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#GraphicsMapTip

the XAML code looks like:
 
          <esri:GraphicsLayer ID="StatesGraphicsLayer">
                <esri:GraphicsLayer.MapTip>
                    <Border esri:GraphicsLayer.MapTipHideDelay="00:00:01.5" CornerRadius="10" BorderBrush="#FF222957" BorderThickness="3" Margin="0,0,15,15"> .......
 
 


Thank you!! That helps!
0 Kudos