rubenspgcavalcante / leaflet-ant-path

🌿🐜 Creates a leaflet polyline with a 'ant-path' animated flux
http://rubenspgcavalcante.github.io/leaflet-ant-path
MIT License
467 stars 80 forks source link

is there a leaflet.antpath.js file that vanilla JS folks like me can use? #53

Closed answerquest closed 6 years ago

answerquest commented 6 years ago

Type:

Environment:

I'm going to open a PR:

Description: Hi, apologies but I'm from the vanilla JS days, and the place where I want to publish my map with your awesome plugin animating the line, is also not going to have npm etc installed. Is there a .js file that I can include in my HTML, like <script src="leaflet.antpath.js" type="text/javascript"></script> to make this work? I looked up your demo's source code but it befuddles me. I've been using leaflet and several other plugins too since a long time and there's a clear .js file to use in the other cases.

If there is one, could you put a mention of it in the readme? Great work btw.

rubenspgcavalcante commented 6 years ago

If you check the docs, you can use directly from the CDN: <script src="https://unpkg.com/leaflet-ant-path" type="text/javascript"></script> Or just download the file here

answerquest commented 6 years ago

Thanks! I hadn't notice there was a documentation section in the .io site.