mapbox-gl icon indicating copy to clipboard operation
mapbox-gl copied to clipboard

After Updating the mapbox-gl

Open hirenpatel868 opened this issue 7 years ago • 7 comments
trafficstars

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)

hirenpatel868 avatar Mar 25 '18 12:03 hirenpatel868

@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.

eterna2 avatar Mar 25 '18 13:03 eterna2

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

hirenpatel868 avatar Mar 25 '18 13:03 hirenpatel868

@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?

eterna2 avatar Mar 30 '18 04:03 eterna2

i have the same issue

bilalsaeed232 avatar Dec 26 '18 03:12 bilalsaeed232

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

bilalsaeed232 avatar Dec 26 '18 04:12 bilalsaeed232

and i am using mapbox draw controls:

image

bilalsaeed232 avatar Dec 26 '18 04:12 bilalsaeed232

https://github.com/PolymerVis/mapbox-gl/pull/56/commits/010871b3049d6c79c6d643c28d1251c6ae51094c

bilalsaeed232 avatar Dec 26 '18 06:12 bilalsaeed232