-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Extra methods to facilitate icons refresh #564
Conversation
… parent clusters in real-time. For issues Leaflet#561, Leaflet#555, Leaflet#535 and Leaflet#498.
… refreshing Marker
I like the idea of this. Thanks! |
Hi, Thanks for your feedback. |
…es, added license to package.josn, created test spec suite and added it to spec index.
Hi, Excuse me I have some doubts about how I should proceed here:
I apologize for these stupid questions, I am quite new to GitHub and I am not so aware of how an open source community runs… |
No worries, most projects run differently :) Don't update the dist files (so please revert that commit) Do update the README to detail this new method :) |
Hi,
Thank you for the explanations.
I will proceed as instructed.
By the way, please how do you manage the discrepancy between Readme and
version of dist file?
If I update the Readme, it will talk about something that is not in the
dist version.
|
I still see the dist changes in your commits. I'll update dist after merging. |
Hi,
Sorry for the delay.
I am not sure how to revert a commit…
I will try rebuilding the fork.
|
Ok it should be good now. Please let me know should I need to perform any extra step or correct any On 8 October 2015 at 14:55, ghybs 1 [email protected] wrote:
|
That looks good, will take a read through next week. |
* markers' icon options and refreshing their icon and their parent clusters | ||
* accordingly (case where their iconCreateFunction uses data of childMarkers | ||
* to make up the cluster icon). | ||
* Should cover issues #563, #561, #555, #535 and #498. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Trash this line please, we have git history and github to track this :)
Extra methods to facilitate icons refresh
Merged, can trash the line myself |
Hi, Well it looks like the test spec messes up… |
Dumb, this happens in some of the current tests already too. |
It seems that avoiding It could be related to PhantomJS bad garbage collection / memory leak, even though we are still on a very low number of tests and I do not see any peak in memory... I will push an update for the test I created at least. |
See PR #577. Maybe re-engineering the other test suites could help for the similar cases you sound to have encountered? |
sweet, next time I see any others crap out I'll have a go. |
Can't find refreshClusters() method anywhere. What is the state of this at the moment? I need to update some markers every few seconds |
Hi, It should be included in the dist file. For Leaflet stable (0.7.7), use marker cluster branch "leaflet-0.7", For Leaflet 1.0 beta2, use marker cluster tag "1.0.0-beta.2.0", Hope this helps. |
Nice, it helps. I'm using leaflet 0.7.7 but I'm using default branch of marker cluster. How I switch branch? Thanks for the quick reply :p |
Additional methods to facilitate marker icons update and propagate to their parent clusters in real-time. For issues #563, #561, #555, #535 and #498.
The 2 private methods could also be re-used in
addLayers
andremoveLayers
.As I am quite new to Git, I am not sure this is the correct way to proceed. I also tried to find a suitable place for this piece of code, but feel free to place it somewhere else more appropriate.
Anyway, this is mainly an attempt to propose some code in a better way than posting it in comments, as pointed out by @IvanSanchez.