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

EmptyProvider

1 Answer 58 Views
Map
This is a migrated thread and some comments may be shown as answers.
Martin Roussel
Top achievements
Rank 1
Martin Roussel asked on 26 Nov 2010, 03:29 PM
Hi, while im waiting for my Bing account to be approved. Im trying to use the EmptyProvider map with my RadMap control. When i see my map in my application it's blank (I see the zoom controls and navigation arrows ans such but background is grey). Is it the normal behavior of an EmptyProvider? (im not sure if a default basic map is provided or not at all) Maybe there is something i need to add in my code but not sure if its in the provider declaration or XAML map declaration. Im using Q3 2009 btw:

XAML
xmlns:map="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.DataVisualization"
xmlns:maps="clr-namespace:Telerik.Windows.Controls.Map;assembly=Telerik.Windows.Controls.DataVisualization"
 
<map:RadMap x:Name="radMap" >
     <maps:InformationLayer x:Name="InformationLayer">
                         
     </maps:InformationLayer>
</map:RadMap>

VB
Dim provider As New EmptyProvider()
Me.radMap.Provider = provider


Thanks,

1 Answer, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 30 Nov 2010, 02:31 PM
Hello Martin Roussel,

This is the expected behavior. The Empty Provider does not connect to any real imagery services (Bing, OpenStreet etc) so it doesn't show any map tiles. This provider encapsulates definitions and methods that can be used to calculate positions of the framework elements, map shapes and pin points. By using this provider you can create map-relative applications which do not require visibility of the real map data (landscapes or roads), but which require visible elements to be positioned according to the geographical coordinates.

You can check this online example here for possible usage of the Empty Provider.

Sincerely yours,
Andrey Murzov
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
Tags
Map
Asked by
Martin Roussel
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Share this question
or