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)
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)