Azure-Samples / Azure-Samples/AzureMapsCodeSamples

When attempting to initialize the GeolocationControl, a TypeError is thrown indicating that atlas.control.GeolocationControl is not a constructor.

オープン
#198 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
373
フォーク
468
PR マージ指標
30日以内にマージされた PR はありません

説明

TypeError: atlas.control.GeolocationControl is not a constructor
at Bing.js:80:18
at atlas.min.js:105:1044990
at Map.forEach ()
at kN._invokeListeners (atlas.min.js:105:1044922)
at kN.invoke (atlas.min.js:105:1044600)
at t.l (atlas.min.js:105:1125510)
at t.fire (atlas.min.js:55:10455)
at t. (atlas.min.js:105:160507)
at t.fire (atlas.min.js:55:10455)
at mt.fire (atlas.min.js:55:10742)

Steps to Reproduce

1.Initialize Azure Maps with the standard setup
2.Attempt to create a GeolocationControl instance
3.Error is thrown at runtime

reference:
https://github.com/Azure-Samples/AzureMapsCodeSamples/blob/main/Samples/Device%20Sensors/Geolocation%20control/Geolocation%20control.html

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。