Azure-Samples / Azure-Samples/AzureMapsCodeSamples

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

Ouverte
#198 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
JavaScript
Étoiles
373
Forks
468
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.