henrythasler / Leaflet.Geodesic

Add-on to draw geodesic lines with leaflet
GNU General Public License v3.0
156 stars 27 forks source link

Script does not work with IE #38

Closed samipuro closed 5 years ago

samipuro commented 6 years ago

Latest (and previous to latest) script revision throw errors with latest Internet Explorer (Win 10) and apparently also iPad/Safari. ==> Does not load/work. Line: 46 Error: Object doesn't support property or method 'geodesic'

Also if you try to minimize the script for example with https://javascript-minifier.com/ you will get // Error : Unexpected token: name (obj) // Line : 68 // Col : 8

Chrome & Firefox OK. clipboard01

henrythasler commented 6 years ago

Leaflet.geodesic uses some ESE6-Features that are not supported by IE11. See https://kangax.github.io/compat-table/es6/#ie11 I recommend to use Edge, Chrome or Firefox

henrythasler commented 6 years ago

If you are stuck with IE11 or need to minify code, please see the dedicated ES5-branch: https://github.com/henrythasler/Leaflet.Geodesic/tree/es5