问题标签 [azure-maps]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
2 回答
660 浏览

mapbox - 我可以将 Azure Maps 磁贴用作 Mapbox 样式 JSON 文件的数据源吗?

据我所知,我使用了正确的 URL 格式,但是在 Mapbox Studio 中替换 Mapbox 样式的 JSON 文件时,出现“无效的源 URL”错误

我查看了所有相关的 Mapbox 和 Azure Maps 示例,例如:1) https://docs.microsoft.com/en-au/rest/api/maps/render/getmapimagerytile 2) https://docs.microsoft .com/en-au/rest/api/maps/render/getmaptile

将 Mapbox Studio 中的样式替换为包含上述源的样式时,我收到“无效的源 URL”错误。我希望 Mapbox 能够使用该来源。

0 投票
1 回答
328 浏览

angular7 - 使用 IoT 中心在 Azure 地图中实时更新车辆

我在 .NET 核心中创建了一个车辆管理 Web 应用程序。在这里我们可以管理车辆。当用户登录时,他可以查看他的车辆的全部详细信息。并在地图上提供车辆的当前位置。当车辆移动时,他想在地图中看到移动的实时更新。是否可以在地图中显示实时移动。我检查了 Azure Map。但是我对如何在我的应用程序中实现 Azure 地图和 IoT 中心没有完全了解。如果有人在 Azure 地图中使用过这种类型的实时更新?

0 投票
1 回答
2235 浏览

google-maps - 如何获取原始交通流量数据

创建应用程序以使用来自交通的汽车计数数据。如何访问实时谷歌地图、位智或必应地图数据?

0 投票
1 回答
107 浏览

azure-maps - 从路线中排除某个国家

是否存在从路线中排除特定国家或地区的能力?例如,我计划从乌克兰到法国,但我不想经过波兰。如何在GetRouteDirections API中进行设置?

0 投票
1 回答
147 浏览

azure-maps - 在 Azure Maps 中引入新的(预览)天气切片图层的正确 url 格式是什么?

微软最近宣布了 Azure Maps Weather Service 的预览版 ( https://azure.microsoft.com/en-ca/blog/rain-or-shine-azure-maps-weather-services-will-bring-insights-to-your -企业/)。

我正在尝试使用 Wea​​ther Tile 服务,但似乎找不到任何有关如何访问它的文档。例如,要使用基本的 Azure Maps 图层,您可以使用:https ://atlas.microsoft.com/map/tile/png?api-version=1.0&layer=basic&style=main&zoom={z}&x={x}&y ={y}&subscription-key={key-goes-here}

是否可以以类似的方式检索天气图层?如果是这样,网址的结构是什么?

0 投票
1 回答
175 浏览

geojson - GeoJSON 的反序列化

我对响应的反序列化有问题:

在一种情况下,我会得到多边形,在另一种情况下 - 多面体,所以对于这种情况,属性坐标的描述会有所不同:

如果是多边形:

如果是多面体:

而且我事先不知道我会收到哪个对象。如何解决这个问题呢?

0 投票
1 回答
197 浏览

angular - GoogleMaps JS API v3 cluster multiple data types seperately

I want to use MarkerClusterer with multiple markers of different type and cluster them separately. For example, cluster markers of type X only with other markers of type X, and markers of type y, with other markers of type y.

There are different types of markers in my map (not all the markers represent the same type of element)

I need it to cluster all the markers in the map if the zoom is lower or equal than 15 (easy part).

What I can't achieve is clustering the markers by the type of the marker when zoom is higher than 15.

Thanks for your help.

0 投票
1 回答
80 浏览

azure-maps - 按国家/地区划分的 AzureMaps 计算距离

下午好!如何获取路线中每个国家/地区的路线摘要?例如,我想从乌克兰搬到法国。我从 GetRouteDirections 获得路线,该路线经过 4 个国家,我想看看 - 这条路线经过该路线的每个国家有多少公里

0 投票
1 回答
140 浏览

azure-maps - PostRouteDirections 不会从路线中排除区域

我使用了 PostRouteDirections API。我从路线中排除了几个区域,并将它们放入 PostRouteDirections API。但我看到路线没有改变。这是我的发布请求的示例:

和请求正文:

视觉上看起来像这样(见图):这些多边形被转移到请求正文中的 AvoidAreas 选项。多边形满足条件 160x160 km 的最大尺寸,矩形,它们的数量为 10。否则,API 会返回错误 400 作为响应 为什么路线保持不变? 在此处输入图像描述

0 投票
2 回答
478 浏览

azure - Azure Maps 403“权限、容量或身份验证问题”。

我正在尝试使用 OAuth 访问令牌调用 Azure Maps,但它向我抛出了 403 Forbidden 消息“权限、容量或身份验证问题。”。我已遵循此处提到的程序:https ://docs.microsoft.com/en-us/azure/azure-maps/azure-maps-authentication

同样的程序适用于我的个人免费订阅,但不适用于我公司的订阅。不知道怎么调试。