Search code examples
windows-store-appsbing-mapswindows-8.1

windows store app integrating bing map does not work on windows 8.1


am trying to build an map application using bing on windows 8.1 ,but the result is

map image

xaml code

<Page
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:BingMapsWindowsStoreApp"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:Maps="using:Bing.Maps"
x:Class="BingMapsWindowsStoreApp.MainPage"
mc:Ignorable="d">
<Grid  Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
    <Maps:Map x:Name="myMap" HorizontalAlignment="Stretch"  VerticalAlignment="Stretch" Credentials="AjeEXq9FGVKMaLZHTMZNRisDaCsToKEncpKIHbd"/>
</Grid>


Solution

  • The user region settings of your computer might be set to one of these:

    • Argentina
    • Azerbaijani
    • China
    • India
    • South Korea
    • Morocco
    • Pakistan
    • Singapore
    • Serbia
    • Venezuela

    Bing Maps is not supported in these regions. To overcome this, either set HomeRegion="US" in <Maps:Map .... /> or go to Control-Panel > Clock, Language and Region > Change Location. Set Home Location to United States. Also try with latest version of SDK.