-
Notifications
You must be signed in to change notification settings - Fork 225
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Live daha support #43
Comments
This is possible, I have used the same technique for the real-time visitor map in Piwik (which used Kartograph.js). // initally generate the symbol group
symbolgroup = map.addSymbols(...)
function newDataArrived(data) {
// remove symbols that are gone using .remove(filterFunc)
symbolgroup.remove(function(symbolData) {
// eg. remove after one second
return now - symbolData.created_at > 1000;
});
// update existing symbols
symbolgroup.update({
radius: function(s) { ... }
});
// add new symbols
$.each(data, function(i, row) {
symbolgroup.add(row);
});
} |
Hi, Thanks for the tip. I have a question about this issue. I manage to show/update symbols real-time but when I use noverlap to cluster symbols then the new symbol does not show up and there is no error. Is it possible to use noverlap with realtime updates? Thanks Here is the code that I used.
|
I managed to add new symbols to map while using noverlap;
I used following code for non-clustering maps to add new symbols but when I use clustering new symbols does not show up. Moreover last line cause to duplicate the clustered symbols.
Is there an easy way to do it right? Or my first approach is just fine? Thanks, |
We are using kartograph.js for displaying live malware information.
We used noverlap at the clustering example: http://kartograph.org/showcase/clustering/ But unfortunately we couldn't figured it out how will the circles' radius will increase when the new data is arrived. It seems there is no easy way for doing that.
The text was updated successfully, but these errors were encountered: