I have trouble with some of my map elements, for example MapLine.
When I use this syntax the MapLine is displayed in red and shows a tooltip when mouse is over.
When I use this syntax the MapLine is not displayed and there is no tooltip.
3 Answers, 1 is accepted
answered on 10 Apr 2013, 12:48 PM
The map shape is quite specific object. For a case with this kind of tooltip the MapLine will be used as data context for the text block. So, you should specify the binding of text property like following:
Thanks for your quick response. I changed the ToolTip syntax as shown and it worked. I also solved the display/Stroke problem by using a ColorToSolidColorBrush Converter and using the first syntax. So now I can display MapLines on my RadMap.
Please allow me another question:
I use two InformationLayers to display MapElements. The 1st displays FrameworkElements designed by DataTemplate (Grid, Elements inside that Grid and a Popup filled with data). I can open/close this Popup when a user clicks on the FrameworkElement. The 2nd Layer displays the MapLines from above. I also want the behavior from my 1st Layer on the 2nd one, but it seems when using MapShapes instead of FrameworkElement there is only one Element allowed inside DataTemplate.
<!-- I need more than just a single MapLine to display my MapItems, for example a Popup Element -->
<!-- <Popup... /> -->
When I wrap the MapShape with a Grid to add additional Elements the MapShape is not displayed at all. I hope this is comprehensible.
answered on 11 Apr 2013, 10:53 AM
Because of the specific of the map shape objects they can be used only as a root element in the data template. You can create control to show additional information over the map shape programmatically. For example: