Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I am using the ESRI Silverlight API to allow users to use the Identify functionality on a map. The graphics layer on this map is set to use Map Tips, and a pin will be applied to the graphics layer when a user clicks on the map. However, in specific cases, I want the map tips to be disabled.

I am using the MouseEnter event on the graphics layer to catch each graphic as the user rolls over them. Once inside, I can determine whether or not I want the Map Tip to show up based on the graphics' attributes.

Is there a way for me to disable the Map Tips inside of the MouseEnter event? I don't want to disable them for the entire graphics layer.

Thanks, Seth

share|improve this question
add comment

2 Answers

Graphics have a MapTip property as well. GraphicsLayer.MapTip is used if this property is not set. Maybe you could play with setting this property on MouseEnter (or when initially constructing the graphic) to get your desired effect?

share|improve this answer
add comment

You might also consider the a custom symbol. For example the MapTipLabelMarkerSymbol in this sample.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.