Open artemverbo opened 9 years ago
Thank you, pleased to hear. Do you mean removing dependency on jQuery animation plugin, or removing dependency on jQuery for any purposes. Technically, now I use jQuery, in addition to animation, only for $.extend method. I could implement that manually. And make user provide his own animation engine based on whatever he wants, like velocity js. Just curious, why removing jQuery dependency would be advantageous to you?
In v0.2.0 added animateFunctionAdapter, that can be used to provide alternative animation routine.
@viskin thank you! The reason is simple, for the current project I'm working on, a massive AngularJS-based app with quite a few dependencies already, so the decision was made from the beginning of it to follow the trend of being lightweight as possible and not using jQuery (as Angular has kind of a jQLite DOM-querying tiny component). So for the purpose of demoing the possible other map "clustering" solution, I've used a modified version of your lib (stripped $.extend and replaced animation engine to just static) and spiderfy, looks really nice, but can't really easily maintain that "forked" version. That whole map feature is kind of experimental at the moment in our project, but would be awesome to have your lib as a proper dependency later on when it's going to prod.
Ok, I'll remove the dependency later this week
v0.2.1 performs feature detection and uses alternative algorithm for $.extend if jQuery was not supplied. marker-animate still has the jQuery dependency. You can provide alternative animation routine with animateFunctionAdapter that does not depend on jQuery.
PR with such one in separate file will be appreciated.
Hello!
Thank you for the project, looks really good and useful. In particular animation for OverlappingMarkerSpiderfier is amazing. Would be cool to have a jQuery-free version, as you stated in your plans for the future, just +1-ing that one :)