Hi.
We have implemented the radmap control in our application. Everything is fine except for we would like to prevent the control to automatically connect to Bing when loading the page. We built our code base on the example provided on your site and the XAML look like this:
<telerik:RadMap x:Name="rmMap" Grid.Column="0" ZoomLevel="3" Center="62.832999, -95.9139999" ZoomChanged="rmMap_ZoomChanged" CenterChanged="rmMap_CenterChanged" Visibility="Collapsed" Canvas.ZIndex="1">
<telerikMap:InformationLayer Name="informationLayer">
<telerikMap:InformationLayer.ItemTemplate>
<DataTemplate>
<Border Background="#7FFFFFFF" BorderThickness="1" Padding="2,2,2,2">
<ToolTipService.ToolTip>
<ToolTip Content="{Binding Path=Title}" />
</ToolTipService.ToolTip>
<telerikMap:MapLayer.HotSpot>
<telerikMap:HotSpot X="0.5" Y="0.5" />
</telerikMap:MapLayer.HotSpot>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="14" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<Path Fill="Red">
<Path.Data>
<GeometryGroup>
<EllipseGeometry Center="7,7" RadiusX="3" RadiusY="3" />
<EllipseGeometry Center="7,7" RadiusX="7" RadiusY="7" />
</GeometryGroup>
</Path.Data>
</Path>
</Grid>
</Border>
</DataTemplate>
</telerikMap:InformationLayer.ItemTemplate>
</telerikMap:InformationLayer>
<telerikMap:InformationLayer Name="informationLayer2" />
</telerik:RadMap>
So when we load the UserControl that contains RadMap, it automatically connects to BING Map Provider (this is my understanding) to provide the map as per the specifications above. Is there a way to still include the radmap in our UserControl and have it connect to BING only at the time of calling the 'SearchProvider.SearchAsync(request)' for the first time in our code?
The reason we want to do this is to limit the number of 'hits' to BING
Civelle.
We have implemented the radmap control in our application. Everything is fine except for we would like to prevent the control to automatically connect to Bing when loading the page. We built our code base on the example provided on your site and the XAML look like this:
<telerik:RadMap x:Name="rmMap" Grid.Column="0" ZoomLevel="3" Center="62.832999, -95.9139999" ZoomChanged="rmMap_ZoomChanged" CenterChanged="rmMap_CenterChanged" Visibility="Collapsed" Canvas.ZIndex="1">
<telerikMap:InformationLayer Name="informationLayer">
<telerikMap:InformationLayer.ItemTemplate>
<DataTemplate>
<Border Background="#7FFFFFFF" BorderThickness="1" Padding="2,2,2,2">
<ToolTipService.ToolTip>
<ToolTip Content="{Binding Path=Title}" />
</ToolTipService.ToolTip>
<telerikMap:MapLayer.HotSpot>
<telerikMap:HotSpot X="0.5" Y="0.5" />
</telerikMap:MapLayer.HotSpot>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="14" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<Path Fill="Red">
<Path.Data>
<GeometryGroup>
<EllipseGeometry Center="7,7" RadiusX="3" RadiusY="3" />
<EllipseGeometry Center="7,7" RadiusX="7" RadiusY="7" />
</GeometryGroup>
</Path.Data>
</Path>
</Grid>
</Border>
</DataTemplate>
</telerikMap:InformationLayer.ItemTemplate>
</telerikMap:InformationLayer>
<telerikMap:InformationLayer Name="informationLayer2" />
</telerik:RadMap>
So when we load the UserControl that contains RadMap, it automatically connects to BING Map Provider (this is my understanding) to provide the map as per the specifications above. Is there a way to still include the radmap in our UserControl and have it connect to BING only at the time of calling the 'SearchProvider.SearchAsync(request)' for the first time in our code?
The reason we want to do this is to limit the number of 'hits' to BING
Civelle.