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

Multiple providers issue

2 Answers 72 Views
Map
This is a migrated thread and some comments may be shown as answers.
Lou
Top achievements
Rank 1
Lou asked on 21 Sep 2011, 04:30 PM
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 Answers, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 23 Sep 2011, 04:15 PM
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 >>

0
Lou
Top achievements
Rank 1
answered on 23 Sep 2011, 04:23 PM
Thanks for the suggestions, I will try them out.
Tags
Map
Asked by
Lou
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Lou
Top achievements
Rank 1
Share this question
or