how to show the tool tip in the rad map pushpin

2 posts, 0 answers
  1. Asiq Raja
    Asiq Raja avatar
    30 posts
    Member since:
    Jul 2010

    Posted 03 Feb 2011 Link to this post

    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
  2. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 08 Feb 2011 Link to this post

    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>>
  3. DevCraft banner
Back to Top