I am trying to create a map application using bing on Windows 8.1, but the result
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>
Your computer’s user region settings can be set to one of the following parameters:
Bing . , HomeRegion="US" <Maps:Map .... /> > , > . Home Location . SDK.
HomeRegion="US"
<Maps:Map .... />
, . , , , , , . , , .
// 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; }