asitis
asitis

Reputation: 3031

Win 8.1 Bing map control is showing access denied image

I am creating a Windows 8.1 application. I am using Bing amp control in it. But it is showing access denied image on the Bin map control.

  <map:Map x:Name="MapControl" Height="480"  Width="475"   IsEnabled="{Binding IsMapEnabled}" 
                                            Credentials="{StaticResource BingMapKey}" ManipulationMode="All" ZoomLevel="3" 
                                            ShowNavigationBar="False" ShowScaleBar="False" ShowBuildings="True"  ViewRestriction="OneWorldOnly">
                                            <map:Map.Center>
                                                <map:Location Latitude="{Binding CurrentLocation.Latitude}" Longitude="{Binding CurrentLocation.Longitude}"/>
                                            </map:Map.Center>

enter image description here

Credentials are also given. What is wrong there? If anybody knows the reason please help me.

Upvotes: 0

Views: 176

Answers (1)

rbrundritt
rbrundritt

Reputation: 17954

This is due to the region settings. Certain regions are blocked due to geopolitical issues. This is documented here: http://msdn.microsoft.com/en-us/library/jj670541.aspx

One way around this is to set the HomeRegion property of the map to US or some other supported 2 letter country code.

Upvotes: 1

Related Questions