'Leaflet Ant Path animation stops on zoom out

I am trying to implement the Ant Path extension for the Leaflet javascript library but I am having difficulty fixing an issue with the animation. When the map is zoomed out, the animation is paused. I found this issue on the github page - no animation when zoom<=0 but I can't apply this fix because I am using a CDN.

Here is my jsfiddle where you can see the issue in action: https://jsfiddle.net/yqmaztrb/

const antpath = L.polyline.antPath(path, {
    "delay": 200,
    "dashArray": [
        10,
        20
    ],
    "weight": 4,
    "color": "black",
    "pulseColor": "#FFFFFF",
    "paused": false,
    "reverse": false,
    "hardwareAccelerated": true
});
antpath.addTo(map);

Any ideas how to fix it?



Solution 1:[1]

I do not know for sure if this will fix your problem but it is more efficient dax in my opinion:

count_true = CALCULATE(COUNTROWS(Table), Table[boolean])

If you still have the issue after changing your measure to use this format, you may have an underlying issue with the model. There is also the function KEEPFILTERS that may apply here but I think using KEEPFILTERS is overcomplicating your case.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Antyan