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
[TIMOB-9332] Added centerOffset property to TiMapView.m #2304
[TIMOB-9332] Added centerOffset property to TiMapView.m #2304
Conversation
Signed CLA is in place. |
Question: What happens if this centerOffset is changed while the view exists/is already placed? Read: There should be a setter for the centerOffset in question to avoid race conditions where the centerOffset is set after annotation creation. There also needs to be a change to apidoc/Titanium/Map/Annotation.yml to reflect this. Finally, there needs to be parity with Android/Mobile Web, or at least Jiras for such parity. CR: Needs revisions. |
I tried to set centerOffset twice once the annotation was already shown in the map and everything went fine, but I'm going to check and create that setter, should that be in TiMapAnnotationProxy.m, right? Do I have to open those tickets in Jira by myself as I did with this one? |
Correct. TiMapAnnotationProxy.m I'll handle the JIRA tickets. |
I added the centerOffset setter in MapAnnotationProxy.m and modified the docs with the description of the property. Are the getters and setters created automatically from the properties in the docs? |
Any problems with the last commit? It's been 10 days without any response. |
Apologies for the delay. I should clarify. The way the Apple Mapkit handles annotations is that they are recycled when they go offscreen. So if you have 2 image annotations, and both go offscreen, the view that was associated with annotation A may be instead used for annotation B and vice versa.
|
Thanks for the comments. I'll update ASAP with these changes. |
@joseitinerarium - Please let us know if you plan to address these comments. |
Yes I plan to address the comments but I've been unable to review and code the missing points. |
Closing this pull request due to lack of response. Please open a new pull request if you decide to address and code the comments. |
This commit corresponds to this jira ticket: https://jira.appcelerator.org/browse/TIMOB-9332
It enables to use centerOffset property in a Ti.Map.Annotation.
The CLA is signed with e-mail: joscandreu@gmail.com with the name: Jose Carlos Andreu Galan
I'm going to provide a simple test case in the comments of the jira ticket.