Comments (2)
thx. prbly overhauling this to use WebGL this year.
from pewpew.
Sorry, I'm not sure whether I explained it clearly before.
The problem I saw was simply because the arrays slatlong and cnlatlong, created from csv files, have different sizes.
You get a random src between 0 and slatlong length. Later, if china_mode is enabled, you try to access src index in cnlatlong.
Since samplatlong.csv has 2530 lines, while cnlatlong.csv only has 2519 lines, when src becomes greater than 2519 the indexation fails and the visualization hangs.
Obviously, you can avoid the problem simply making cnlatlong.csv's length greater than samplatlong.csv's one. Despite that, maybe src should be randomly obtained between 0 and cnlatlong's length when china_mode is enabled.
Not a big problem, but I thought I should note it.
If it was clear before, sorry for insisting.
from pewpew.
Related Issues (14)
- License file? HOT 2
- Allow for alternate world map HOT 3
- Add functionality to pull in REAL attack data from security system sources (Honeypot/IPS/Firewalls). HOT 6
- heroku deploy button HOT 12
- real csv file HOT 5
- site Not working HOT 6
- favicon 404 error
- Does not deploy correctly HOT 1
- World Map
- Looks like the CSV doesn't get loaded in time (sometimes) HOT 1
- JS Heap Balloons Rapidly When Tab Is Hidden HOT 1
- Feature request: Destination Location HOT 3
- add startup message letting folks know to turn up the sound
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 pewpew.