Azure-Samples / Azure-Samples/AzureMapsCodeSamples

Leaflet samples do not show a map

未关闭
#203 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
JavaScript
星标
373
派生
468
PR 合并指标
30 天内没有已合并 PR

描述

Console has the following errors:
```
azure-maps-leaflet.min.js:4 Uncaught Error: An invalid authentication type was specified
at T.signRequest (azure-maps-leaflet.min.js:4:41784)
at T.getRequest (azure-maps-leaflet.min.js:4:41923)
at f.createTile (azure-maps-leaflet.min.js:4:43702)
at f._addTile (GridLayer.js:812:19)
at f._update (GridLayer.js:709:10)
at f._setView (GridLayer.js:570:10)
at f._resetView (GridLayer.js:526:8)
at f.onAdd (GridLayer.js:162:8)
at f._layerAdd (Layer.js:114:8)
at i.whenReady (Map.js:1465:13)
T.signRequest @ azure-maps-leaflet.min.js:4
T.getRequest @ azure-maps-leaflet.min.js:4
f.createTile @ azure-maps-leaflet.min.js:4
_addTile @ GridLayer.js:812
_update @ GridLayer.js:709
_setView @ GridLayer.js:570
_resetView @ GridLayer.js:526
onAdd @ GridLayer.js:162
_layerAdd @ Layer.js:114
whenReady @ Map.js:1465
addLayer @ Layer.js:176
getMap @ azure-maps-leaflet-options:50
onload @ azure-maps-leaflet-options:67
azure-maps-leaflet.min.js:4 Uncaught (in promise) Error: An invalid authentication type was specified.
at azure-maps-leaflet.min.js:4:38017
at new Promise ()
at T.initialize (azure-maps-leaflet.min.js:4:37448)
at new f (azure-maps-leaflet.min.js:4:46563)
at getMap (azure-maps-leaflet-options:33:21)
at onload (azure-maps-leaflet-options:67:25)
```

贡献指南

打开贡献指南

调研方向

从堆栈跟踪中显示的 Leaflet sample entry point、azure-maps-leaflet-options 开始,并在浏览器控制台中复现页面加载。跟踪产生“An invalid authentication type was specified.”的初始化和 request-signing 路径。当受影响的 Leaflet samples 能够在没有这些身份验证错误的情况下显示地图时,即表示完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
javascript
领域
frontend, web-dev
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。