This question is locked. New answers and comments are not allowed.
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#
XAML:
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:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
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
>