Azure-Samples / Azure-Samples/AzureMapsCodeSamples

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

Đang mở
#198 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
JavaScript
Star
373
Fork
468
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.