Windows store application integrating bing card does not work on Windows 8.1

I am trying to create a map application using bing on Windows 8.1, but the result

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>

+4
source share
2 answers

Your computer’s user region settings can be set to one of the following parameters:

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

Bing . , HomeRegion="US" <Maps:Map .... /> > , > . Home Location . SDK.

+6

, . , , , , , . , , .

// CHANGE MAP REGION
switch (myMap.HomeRegion)
{
    case "AR": // ARGENTINA
    case "AZ": // AZERBAIJAN
    case "KR": // SOUTH KOREA
    case "CN": // CHINA
    case "IN": // INDIA
    case "MA": // MOROCCO
    case "PK": // PAKISTAN
    case "SG": // SINGAPORE
    case "RS": // SERBIA
    case "VE": // VENEZUELA
    case "TW": // TAIWAN
    case "HK": // HONG KONG
        myMap.HomeRegion = "US";
        break;
}
0

All Articles