This is a migrated thread and some comments may be shown as answers.

how to show the tool tip in the rad map pushpin

1 Answer 144 Views
Map
This is a migrated thread and some comments may be shown as answers.
Asiq Raja
Top achievements
Rank 1
Asiq Raja asked on 03 Feb 2011, 03:08 PM
Hi,
     I try to show the tool tip on the rad map pushpin (for pushpin i m using flag image), so while the mouse over i would like to show the customer details. i m using Information layer, so i don't know how to bind the details on the map so could any one can tell how to do that.

in my xaml:
-------------

<telerik:RadMap Margin="32,5,31,13"
                                          Name="radMap1"
                                          UseDefaultLayout="False"
                                          UseSpringAnimations="False"
                                          MouseClickMode="None"
                                          ZoomChanged="radMap1_ZoomChanged" MapMouseDoubleClick="radMap1_MapMouseDoubleClick"
                                          Grid.ColumnSpan="2" Width="950" Height="281" MouseWheel="radMap1_MouseWheel">
                                    
                                        <telerik:InformationLayer Canvas.ZIndex="200000" Name="informationLayer" Width="950"  >
                                          
                                        </telerik:InformationLayer>

                                    </telerik:RadMap>



 in my cs:
-----------
Location location = new Location(Convert.ToDouble(oMeter.Latitude), Convert.ToDouble(oMeter.Longitude));
MapPinPoint point = new MapPinPoint();                   
point.ImageSource = new BitmapImage(new Uri("../images/MeterPinpoint.png", UriKind.Relative));
 MapLayer.SetLocation(point, location);
this.informationLayer.Items.Add(point);,

but i don' t know how to bind the tool tip, and where i should  add the tool tip services.

Note: its very urgent,, plz do reply as soon as possible.

Thanks & Regards
   M.Asiq Raja

1 Answer, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 08 Feb 2011, 09:00 AM
Hello Asiq,

You can set tooltip to MapPinPoint instance using the standard Silverlight approach.
MapPinPoint point = new MapPinPoint();
point.ImageSource = new BitmapImage(new Uri("../images/MeterPinpoint.png", UriKind.Relative));
  
ToolTip tooltip = new ToolTip()
{
    Content = "tooltip content ..."
};
ToolTipService.SetToolTip(point, tooltip);
  
MapLayer.SetLocation(point, location);
this.informationLayer.Items.Add(point);

Greetings,
Andrey Murzov
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
Tags
Map
Asked by
Asiq Raja
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Share this question
or