Turning on labels for a layer that has a Reader

2 posts, 0 answers
  1. Steven
    Steven avatar
    4 posts
    Member since:
    Oct 2010

    Posted 10 Jan 2011 Link to this post

    var reader = new MapShapeReader();
    reader.Source = new Uri(string.Format(RelativeUriFormat, ShapeExtension), UriKind.Relative);
    reader.DataSource = new Uri(string.Format(RelativeUriFormat, DbfExtension), UriKind.Relative);
    reader.ToolTipFormat = "Name";
    return reader;

    I am reading a standard shape file with the MapShapeReader control onto the telerik Map with the Bing Provider. I can readily set the the tool tip for the different shapes that get read by setting it with the property name. Is there a way to readily turn on the label for said read shapes instead of just a tool tip?

  2. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 13 Jan 2011 Link to this post

    Hello Steven,

    Unfortunately the current version of the RadMap control doesn't support automatic labels (captions) for map shape objects. We are planning to add this support in the future versions of our product. You can check its availability using our PITS:

    http://www.telerik.com/support/pits.aspx#/public/silverlight/4603

    As workaround you can try approach which is used in this example:

    http://demos.telerik.com/silverlight/#Map/Hotel

    This example shows additional text over the map polygon.
    I hope this information gets you started properly.

    Kind regards,
    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