加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Windows > 正文

windows-store-apps – 集成bing map的windows store app在Windo

发布时间:2020-12-14 04:38:25 所属栏目:Windows 来源:网络整理
导读:我试图在 Windows 8.1上使用bing构建一个地图应用程序,但结果是 xaml代码 Pagexmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"xmlns:local="using:BingMapsWindowsStoreApp"xmln
我试图在 Windows 8.1上使用bing构建一个地图应用程序,但结果是

xaml代码

<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>

解决方法

您的计算机的用户区域设置可能设置为以下之一:

>阿根廷
>阿塞拜疆
>中国
>印度
>韩国
>摩洛哥
>巴基斯坦
>新加坡
>塞尔维亚
>委内瑞拉

这些地区不支持Bing地图.要解决此问题,请在< Maps:Map .... />中设置HomeRegion =“US”.或转到Control-Panel>时钟,语言和地区>换地点.将家庭位置设置为美国.也可以尝试使用最新版本的SDK.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读