Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

leaflet-ant-path does not work on Safari browser for iOS #21

Closed
ebrensi opened this issue Nov 1, 2016 · 4 comments
Closed

leaflet-ant-path does not work on Safari browser for iOS #21

ebrensi opened this issue Nov 1, 2016 · 4 comments
Labels

Comments

@ebrensi
Copy link
Contributor

ebrensi commented Nov 1, 2016

This is the error given in the Safari developer tab for the ant-path demo:

[Error] Error: o[Symbol.iterator] is not a function. (In 'o[Symbol.iterator]()', 'o[Symbol.iterator]' is undefined)
value@http://rubenspgcavalcante.github.io/leaflet-ant-path/dist/leaflet-ant-path.js:1:4761
value@http://rubenspgcavalcante.github.io/leaflet-ant-path/dist/leaflet-ant-path.js:1:3756
_layerAdd@http://cdn.leafletjs.com/leaflet/v1.0.0-rc.3/leaflet.js:6:2778
whenReady@http://cdn.leafletjs.com/leaflet/v1.0.0-rc.3/leaflet.js:6:298
addLayer@http://cdn.leafletjs.com/leaflet/v1.0.0-rc.3/leaflet.js:6:3115
http://rubenspgcavalcante.github.io/leaflet-ant-path/gh-src/ant-path-example.directive.js:28:33
processQueue@https://ajax.googleapis.com/ajax/libs/angularjs/1.4.5/angular.js:14634:30
https://ajax.googleapis.com/ajax/libs/angularjs/1.4.5/angular.js:14650:39
$digest@https://ajax.googleapis.com/ajax/libs/angularjs/1.4.5/angular.js:15689:36
$apply@https://ajax.googleapis.com/ajax/libs/angularjs/1.4.5/angular.js:15986:31
done@https://ajax.googleapis.com/ajax/libs/angularjs/1.4.5/angular.js:10511:53
completeRequest@https://ajax.googleapis.com/ajax/libs/angularjs/1.4.5/angular.js:10683:15
requestLoaded@https://ajax.googleapis.com/ajax/libs/angularjs/1.4.5/angular.js:10624:24
        (anonymous function) (angular.js:9203)
        processQueue (angular.js:14642)
        (anonymous function) (angular.js:14650)
        $digest (angular.js:15689)
        $apply (angular.js:15986)
        done (angular.js:10511)
        completeRequest (angular.js:10683)
        requestLoaded (angular.js:10624)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (favicon.ico, line 0)

I'd love to submit a fix for this myself but I don't understand ES6. But I will try anyway if nobody else does.

@rubenspgcavalcante
Copy link
Owner

Well, looks like the Symbol from the core-js module is not exported globally. I'll check if works importing it directly.

@rubenspgcavalcante
Copy link
Owner

After the modification, the IE throws an exception exactly as related here babel/babel#4286. They figured out that including via CDN works out, but in the plugin case cannot be in this way, must be in the final bundle.
I'll set that as a bug and will try to resolve and release as a patch version.

@ebrensi
Copy link
Contributor Author

ebrensi commented Nov 7, 2016

Thank you!!!

@rubenspgcavalcante
Copy link
Owner

Thanks for use the plugin too! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants