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

Bing Birds Eye view image problem

1 Answer 20 Views
Map
This is a migrated thread and some comments may be shown as answers.
Elliot
Top achievements
Rank 1
Elliot asked on 16 May 2011, 05:09 PM
Hello,

I'm having issues with the bird's eye view for the Bingmap Provider.  The control seems to be pulling the tile information ok but the control is not rendering them correctly on the map.  They are all disjointed with pure black between them and the overlay for the roads is way off.  I have tried all types of browsers and the problem still exists.  I am using the latest Telerik.Windows.Controls.dll 2011.1.315.1040.

Here is the code... thanks in advance!

C#
public Map(List<PinInfo> lPinInfo, GPS InitGPSfocus, Int16 InitZoomLevel, MapProviderBase MapProvider, String InfoWindowTitle, SolidColorBrush InfoWindowBackColor)
        {
            //Initializecomponent will initialize the map control all the front end controls required before constructing the rest
            InitializeComponent();  
            //InitializeMapConfiguration is the Map Controls custom configuration to set focus and other sources on configurable types.
            InitializeMapConfiguration(InitGPSfocus, InitZoomLevel, MapProvider);
            GenerateMapElemements(lPinInfo);
            RadMap1.MouseClickMode = MouseBehavior.None;
            RadMap1.ZoomBarPresetsVisibility = System.Windows.Visibility.Collapsed;
            _infoWindowBackGroundColor = InfoWindowBackColor;
            _infoWindowTitle = InfoWindowTitle;           
        }
 
private void InitializeMapConfiguration(GPS InitGPSFocus, Int16 InitZoomLevel, MapProviderBase MapProvider)
        {
            //Check for Null and Set default
            if (InitZoomLevel != null)
            {
                this.RadMap1.ZoomLevel = InitZoomLevel;
            }
            else
            {
                this.RadMap1.ZoomLevel = DEFAULT_ZOOMLEVEL;
            }
            //Check for Null and Set default
            if (InitGPSFocus != null)
            {
                this.RadMap1.Center = new Location(InitGPSFocus.Lat, InitGPSFocus.Long);
            }
            else
            {
                this.RadMap1.Center = new Location(DEFAULT_CENTER_LAT, DEFAULT_CENTER_LONG);
            }
 
            //Add the MapProvider instantiated by the integrator.
            if (MapProvider != null)
            {
                this.RadMap1.Providers.Add(MapProvider);
            }
            else
            {
                this.RadMap1.Providers.Add(new OpenStreetMapProvider());
            }          
        }
 
private void RadMap1_InitializeCompleted(object sender, EventArgs e)
        {
            InformationLayer.Visibility = Visibility.Visible;
        }

XAML:
<UserControl x:Class="Foo.Silverlight.Controls.Map"
    xmlns:app="clr-namespace:Foo.Silverlight.Controls"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400">
 
    <Grid x:Name="LayoutRoot" Background="White">
        <telerik:RadMap x:Name="RadMap1" Center="53.278096,-110.005417" InitializeCompleted="RadMap1_InitializeCompleted" >
            <telerik:InformationLayer x:Name="InformationLayer" Visibility="Collapsed" />
        </telerik:RadMap>
    </Grid>
</UserControl>

1 Answer, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 19 May 2011, 07:32 AM
Hello Elliot,

Based on the supplied information, and code snippets, it is hard to determine what is causing this unwanted behavior. If the issue persists, you can open a formal support ticket, and send us a small working project. demonstrating your logic, and showing the unwanted behavior. We will review it locally, and advise you further.

Greetings,
Yavor
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Map
Asked by
Elliot
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Share this question
or