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

support of ie11

Open AndreySukhov opened this issue 7 years ago • 3 comments

version - 3.1.3 . Tested in IE11 , directions controls doesn't appear on example page at all https://www.mapbox.com/mapbox-gl-js/example/mapbox-gl-directions/ , no errors in console.

Does current version of api supports IE ?

AndreySukhov avatar Jul 18 '18 15:07 AndreySukhov

The issue is the use of Object.assign which is interesting because the library uses a Babel plugin that is supposed to replace Object.assign with a polyfill. It seems as though that might not actually be happening though.

ryanhamley avatar Jan 29 '19 01:01 ryanhamley

Are there any workarounds for this? We are facing the same issue with customers still using IE.

bangrrrt avatar Mar 01 '19 18:03 bangrrrt

@bangrrrt You can include a polyfill for Object.assign. As long as it is included before the GL Directions script, everything should work fine. Here's a demo I made that works in IE11.

ryanhamley avatar Mar 01 '19 19:03 ryanhamley