-
Notifications
You must be signed in to change notification settings - Fork 91
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
NaN at some values #107
Comments
@ppamorim, thanks for reporting this. It is good that you mentioned PureLayout as it can be related to some unusual frame sizes. Could you set a break point or just NSLog to the beginning of that function |
That makes a lot of sense. You're trying to run clustering on map of MKMapRect: There I just decided to drop out from clustering procedure if one tries to cluster map of size MKMapSizeZero as it does not make any sense. Actually that is strange that you're able to enter clustering algorithm as you should probably also have map of size MKMapSizeZero. To verify this put breakpoint on this line -- we want to know what exactly your map view's size is at the moment when clustering starts. |
Please do the same but this time expand |
Or if expansion will not reveal |
@stanislaw The log is too big, I`m lost :s |
I mean we just want to know what your map view's |
Yes and no :) The break point is correct but I want you to do |
@stanislaw I`ll do it on my public repository taht is named Fun-With-Swift, then, you can test, of course. |
Yes that will work. Is that repository already has what I can test or you're going to push something on top of it? |
not ready yet. I`ll push something soon. |
@stanislaw Done! |
@ppamorim thank you for crafting that test application as it helped me to resolve this issue very quickly. Your issue is sort of edge case: since you're using PureLayout you should be careful with the exact moment when you're trying to start clustering controller: currently in your application you call I have pushed P.S. For me as a developer your report gives valuable feedback about weakness of this part of kingpin's public API -- eventually next versions of kingpin will not have Let me know if this works for you. |
I think that the initilizer needs to be invocated with the UIView lifecycle. What do you think about it? |
@stanislaw Solved! Happens when I click in the cluster or pin. Look like the frame of the map is moving. Please ignore the black view. |
I am afraid this is not related to kingpin but rather to some magic that is behind PureLayout or just auto-layout in general. The only thing kinpin does here is that it sets map region i.e. it does not contain any code that would affect mapView's frame size/origin. Try investigating the auto-layout details of your implementation. |
Hi.
I
m studying this library, yesterday this library works fine. But today stops working I don
t know what happens. Then, returns this:My annotation is equals of the TestAnnotation, the complete source of the MapViewController is there: https://gist.github.com/ppamorim/5c6e8d1800a4c7b5a99f
EDIT:
This happens with I use the method setAnnotations. This happens with PureLayout, I used the wrong way to create the view (with bounds) and works fine.
The text was updated successfully, but these errors were encountered: