Git Product home page Git Product logo

Comments (4)

Viglino avatar Viglino commented on May 11, 2024

Right! I've added a test to verify the integrity of the cluster.
Thanks for reporting this bug.

from ol3-animatedcluster.

wlerner avatar wlerner commented on May 11, 2024

The length verification fix above works wonderfully. There is another section of code where this error is now occurring.

Unable to get property '0' of undefined or null reference

The error occurs at line 101 in animatedclusterlayer.js section below:

        for (var i=0, c0; c0=a.cA[i]; i++)
        {   var f = c0.get('features')[0];     <== Error Here
            var c = this.getClusterForFeature (f, a.cB);
            if (c) a.clusters.push({ f:c0, pt:c.getGeometry().getCoordinates() });
        }

error pic 7

This error can be reproduced under Google Chrome, Firefox 42, and Internet Explorer 11.
Thanks for looking into this issue.

from ol3-animatedcluster.

Viglino avatar Viglino commented on May 11, 2024

Yep! I now test if the feature is a consistent cluster.
Thanks for taking care of my bugs!

from ol3-animatedcluster.

wlerner avatar wlerner commented on May 11, 2024

You are welcome! I appreciate all of your hard work. Thank you for sharing your code and expertise with the OL3 community. The last commit solved the problem quite nicely. I will close the issue.

from ol3-animatedcluster.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.