Skip to content

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

Description

@madhankathir12

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions