Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8576151
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T19:51:41+00:00 2026-06-11T19:51:41+00:00

I have a Bing Maps Silverlight Application and want to display Traffic Information on

  • 0

I have a Bing Maps Silverlight Application and want to display Traffic Information on the Map.
It seems to be implemented in the AJAX Version, but not in the Silverlight Version.

So how can I implement a working traffic layer for Silverlight?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T19:51:42+00:00Added an answer on June 11, 2026 at 7:51 pm

    For everyone who is interested in the solution:

    After hours of searching and trying I found the solution here:
    Custom Rendering in Bing Silverlight Control

    public class TrafficTileSource : TileSource
    {
        public TrafficTileSource()
            : base(GetAbsoluteUrl("http://t0.tiles.virtualearth.net/tiles/t{0}.png"))
        {
    
        }
    
        public override Uri GetUri(int x, int y, int zoomLevel)
        {
            var quadKey = new QuadKey(x, y, zoomLevel);
            return new Uri(String.Format(this.UriFormat, quadKey.Key));
        }
    
        public static string GetAbsoluteUrl(string strRelativePath)
        {
            if (string.IsNullOrEmpty(strRelativePath))
                return strRelativePath;
    
            string strFullUrl;
            if (strRelativePath.StartsWith("http:", StringComparison.OrdinalIgnoreCase)
              || strRelativePath.StartsWith("https:", StringComparison.OrdinalIgnoreCase)
              || strRelativePath.StartsWith("file:", StringComparison.OrdinalIgnoreCase)
              )
            {
                //already absolute
                strFullUrl = strRelativePath;
            }
            else
            {
                //relative, need to convert to absolute
                strFullUrl = System.Windows.Application.Current.Host.Source.AbsoluteUri;
                if (strFullUrl.IndexOf("/ClientBin") > 0)
                    strFullUrl = strFullUrl.Substring(0, strFullUrl.IndexOf("/ClientBin")) + strRelativePath;
            }
            return strFullUrl;
        }
    }
    

    And then add the Layer to the Map:

    <m:MapTileLayer Visibility="{Binding Path=TrafficVisibility,Converter={StaticResource BoolToVisibilityConverter},Mode=OneWay,UpdateSourceTrigger=PropertyChanged}">
                    <m:MapTileLayer.TileSources>
                        <utils:TrafficTileSource />
                    </m:MapTileLayer.TileSources>
                </m:MapTileLayer>
    

    I hope that helps everybody who wants to add a traffic layer to their Silverlight application.

    Greetings.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a silverlight application that contains Bing map. I want when the user
I am using the Silverlight sdk for Bing Maps. I have my map, I
Hi I am using a bing maps 7.0 ajax api to display map. I
I have an application using Bing Maps that draws polygons on a map. For
I am building a map application with the silverlight bing maps control. In the
I have created a Silverlight Application project using the Bing Maps Silverlight Control and
I have a MapPolygon which covers a certain area on the Silverlight Bing Maps
I use Bing Maps Ajax V7. I want on right click to get an
So i'm pretty new to using the Bing Maps control in Silverlight, but I
We have a program that displays map data (think Google Maps, but with much

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.