Comments (4)
Right! I've added a test to verify the integrity of the cluster.
Thanks for reporting this bug.
from ol3-animatedcluster.
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() });
}
This error can be reproduced under Google Chrome, Firefox 42, and Internet Explorer 11.
Thanks for looking into this issue.
from ol3-animatedcluster.
Yep! I now test if the feature is a consistent cluster.
Thanks for taking care of my bugs!
from ol3-animatedcluster.
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)
- Cluster Features Do Not Inherit Features HOT 8
- Using an Icon for the feature style causes an error within Firefox HOT 1
- Clustering ol.style.FontSymbol ? HOT 1
- Error if feature style is icon when it's selected with animate: true HOT 3
- Selecting(clicking on) the spread feature shows the original cluster parent feature HOT 3
- Spread feature geometry HOT 2
- Selection of cluster item
- Cluster split animation is inaccurate
- new line in ol.style.Text is ignored while zooming HOT 3
- Why is this repository not integrated in ol-ext? HOT 1
- Feature Request - Cluster Features Spring Apart Without Selection HOT 2
- Incorrect Option for Animation in selectclusterinteraction.js Class Description HOT 2
- Feature Request - Apply Label to Selected Cluster Members HOT 5
- TypeError when using animatedclusterlayer.js with OL3 Version 3.16.0 HOT 2
- animated cluster with no initial source. HOT 2
- Under what license do you share this code? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ol3-animatedcluster.