Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After Updating the mapbox-gl #38

Open
hirenpatel868 opened this issue Mar 25, 2018 · 7 comments
Open

After Updating the mapbox-gl #38

hirenpatel868 opened this issue Mar 25, 2018 · 7 comments

Comments

@hirenpatel868
Copy link

Uncaught TypeError: Cannot read property 'toggle' of undefined
at CustomIControl.onAdd (mapbox-gl-control.html:182)
at e.addControl (mapbox-gl.js:495)
at HTMLElement._addControl (mapbox-gl-control.html:207)
at Object.runMethodEffect [as fn] (property-effects.html:818)
at runEffectsForProperty (property-effects.html:162)
at runEffects (property-effects.html:128)
at HTMLElement._propertiesChanged (property-effects.html:1711)
at HTMLElement._flushProperties (properties-changed.html:341)
at HTMLElement._flushProperties (property-effects.html:1559)
at HTMLElement.__enableOrFlushClients (property-effects.html:1604)

@eterna2
Copy link
Contributor

eterna2 commented Mar 25, 2018

@hirenpatel868

Which control element r u using? Is it a custom icontrol or a mapbox default?

If it is a custom one, I might need some sample codes.

@hirenpatel868
Copy link
Author

i am using mapbox-gl-control element with mapbox default NavigationControl and GeoLocateControl

@eterna2
Copy link
Contributor

eterna2 commented Mar 30, 2018

@hirenpatel868

A few more questions because i cannot reproduce ur error.

What version of mapbox-gl are u using?

Can I have a code snippet, gist or a git repo which reproduce the error?

@bilalsaeed232
Copy link

i have the same issue

@bilalsaeed232
Copy link

i am working on a project which uses polymer 2, these are my imports:
capture

@bilalsaeed232
Copy link

and i am using mapbox draw controls:

image

@bilalsaeed232
Copy link

010871b

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants