mapbox / mapbox-gl-directions

Directions plugin for mapbox-gl-js using Mapbox Directions API.
https://mapbox.com/mapbox-gl-js/example/mapbox-gl-directions/
ISC License
239 stars 127 forks source link

support of ie11 #189

Open AndreySukhov opened 6 years ago

AndreySukhov commented 6 years ago

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 ?

ryanhamley commented 5 years ago

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.

bangrrrt commented 5 years ago

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

ryanhamley commented 5 years ago

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