Multiple providers issue

3 posts, 0 answers
  1. Lou
    Lou avatar
    10 posts
    Member since:
    Aug 2010

    Posted 21 Sep 2011 Link to this post

    I created a custom provider which plots points in a map tile which conforms to the Bing provider tiling scheme. I configured my map control to use both the Bing provider and my custom provider. However, once I zoom past zoom level 10, I notice that the Bing tile and the custom tile do not line up. As I zoom past zoom level 13, the error becomes more apparent. I was able to determine the map tiles are being correctly rendered from the custom provider by recording the extents that the provider creates for them and using an image tag to place them on the Bing map tile. Under that circumstance, the Bing tile and the custom tile line up as expected. So, it appears to me that when the two tiles are blended together from the two providers the second tile gets offset to some degree, and for zoom levels greater than 13, the error is compounded. Any insight on this observation would be appreciated. I am using the Q2 2011 release. Thanks.
  2. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 23 Sep 2011 Link to this post

    Hello Lou,

    It seems that the problem is in the custom provider, or in the way you use it (do you limit geographical region for custom provider using GeoBounds or GeoBoundsNW and GeoBoundsSE properties?). Everything else seems to work just fine. You can check it in our demo application:

    http://demos.telerik.com/silverlight/#Map/TrafficProvider (this sample uses Bing traffic and OSM providers).
    http://demos.telerik.com/silverlight/#Map/MultipleTileLayers (this sample shows geographically limited OSM over the Bing)

    Or you can use following XAML (it show semitransparent OSM over Bing):

    <UserControl x:Class="MultipleTileProviders.MainPage"
                 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                 xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
                 xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
                 mc:Ignorable="d"
                 d:DesignHeight="500" d:DesignWidth="600">
     
        <Grid x:Name="LayoutRoot" Background="White">
            <telerik:RadMap x:Name="radMap"
                            Center="49.377,11.136"
                            ZoomLevel="14">
                <telerik:RadMap.Providers>
                    <telerik:BingMapProvider Mode="Aerial" IsLabelVisible="True" ApplicationId="Your_BING_Application_Id" />
                    <telerik:OpenStreetMapProvider Opacity="0.5" />
                </telerik:RadMap.Providers>
            </telerik:RadMap>
        </Grid>
    </UserControl>


    Best regards,
    Andrey Murzov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. DevCraft banner
  4. Lou
    Lou avatar
    10 posts
    Member since:
    Aug 2010

    Posted 23 Sep 2011 Link to this post

    Thanks for the suggestions, I will try them out.
Back to Top