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
MOD-2418/2450 TI.Map iOS: Support rotation on annotations #293
Conversation
|
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.
@anil-shukla-axway , here we don't have any function to change the rotation of specific annotation and animate the location update. As discussed please add these functions.
Test cases are missing, please add test case to verify the feature as mentioned on ticket. Also rebase with master branch, as current branch looks out dated. |
@anil-shukla-axway @vikas-goyal-axway @fasihul-axway I think we should introduce 2 new properties on annotation -
See following example - var annotation = null; var map = Map.createView({ var animateButton = Ti.UI.createButton({ var rotateButton = Ti.UI.createButton({ rotateButton.addEventListener('click', function() { win.open(); createAnnotations(); function createAnnotations() { Let me know if you have any question. |
I have followed the suggestions(Teams chat) from you.. I found that the methods of class TiMapAnnotationProxy are used to set properties of annotations below is example- var anno4 = Map.createAnnotation({ so If I create one method - (void)animate:(id)args; this has be like setting the animate([annotation, destLatLong]) at the time of annotation creation. Also the below method --
here user has to provide annotation and destination lat long so on behalf of which an angle is being calculated and also the annotation is being animated.
|
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.
@anil-shukla-axway Everything looks good. There are few polishing changes required. Please address that. After that we will be good with this PR.
0c66736 will open ticket MOD-2103 as the previous changes were causing a regression. |
@anil-shukla-axway, there are too many commit and some are useless and may cause confusion if someone dig and want to see history of changes. Please refactor and use specific commit with appropriate message. You have used |
17324f1
to
f643b78
Compare
Made the required changes, please verify. |
b0513ef
to
1dd8d9f
Compare
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.
Changes looks good 👍
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.
@anil-shukla-axway Changes looks good. Please document these APIs.
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.
CR passed .
- name: newLocation | ||
summary: latitude and longitude where annotation will animate. | ||
type: Array<Number> | ||
platforms: [iphone, ipad] |
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.
A since
property needs to be set on new APIs. This should be set to the SDK version we're expecting to ship the changes in.
f5582b8
to
e0a308e
Compare
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.
Doc changes look good!
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.
FR Passed, Able to rotate and animate annotations, tested using the ti.map example app.
Test environment
MacOS Big Sur: 11.0 Beta 5
Xcode: 12.0 Beta 6
Java Version: 1.8.0_242
Android NDK: 21.3.6528147
Node.js: 12.18.1
""NPM":"5.0.0","CLI":"8.1.0-master.11""
iphone 8 Sim (14.0 Beta)
@anil-shukla-axway Could you make updates to the package.json and manifest files so we can publish a new version of ti.map. |
@anil-shukla-axway, Also please update the since property for YML change for newly added methods to 9.2.0 as this will be part of 9.2.0 release. Correct me @ssjsamir if wrong. |
…bumped version number.
9bdfef2
to
7c28832
Compare
https://jira.appcelerator.org/browse/MOD-2418
https://jira.appcelerator.org/browse/MOD-2450
Commit 1dd8d9f is just to revert changes of PR #297, which will reopen ticket MOD-2103 as the change caused a regression.