mapbox-gl-directions
mapbox-gl-directions copied to clipboard
Error when using custom styles and removeControl method
I'm getting the error: Uncaught TypeError: Cannot read property 'recalculate' of undefined
after I use the map.removeControl method on the directions control. Also, it's only happening when using custom styles.
Here's a JSFiddle showing the issue: https://jsfiddle.net/bryantaxs/uomq0zvz/
Any thoughts on this one?
Hi @bryantAXS – thanks for the report.This should be fixed by #168