[TIMOB-1242] iOS: Drag and drop map pin annotations
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-04-23T12:18:33.000+0000 |
Affected Version/s | Release 1.7.2, Release 2.0.0 |
Fix Version/s | Release 2.1.0, Sprint 2012-09 API |
Components | iOS |
Labels | api, dr-list, qe-testadded |
Reporter | Roger Chapman |
Assignee | Neeraj Gupta |
Created | 2011-04-15T02:47:30.000+0000 |
Updated | 2012-06-07T11:38:06.000+0000 |
Description
MKAnnotationView has support for allowing a map annotation to be
draggable (in iOS 4).
Boolean property on Annotation object - draggable:true/false
Add associated Events - e.g. DragStart & DragEnd etc.
blocking feature
Fix in pull request https://github.com/appcelerator/titanium_mobile/pull/53">https://github.com/appcelerator/titanium_mobile/pull/53
Currently iOS >= 4.0 only.
Is this confirmed to work? I just tested it and the demo does not work in simulator or iphone 4 OS4.3. SDK 4.2, Titanium 1.6
Works in 1.6.0 with yury fix, but not in 1.6.1
Any news on this feature, our project depends on it.
wondering what it is going to take to get some movement on this issue
Associated Helpdesk ticket
http://support-admin.appcelerator.com/display/10619Reassigning this ticket with several watchers, due to Reggie's absence.
Community pull request is https://github.com/appcelerator/titanium_mobile/pull/1193 As of today still needs: - Code review - docs - tests
I've written android drag/drop annotation support on github. But I think it's still buggy and colliding with onTap events. Could anybody review the code and give ideas to work out it's problems? the diff is at: https://github.com/fsniper/titanium_mobile/commit/a29b1c858161ff54d9aaad10c0c90a7bb1ff653e
This issue latest notification was not sent due to JIRA mail setting. Fixed now. Please check the issue for latests changes.
I made this pull request: https://github.com/appcelerator/titanium_mobile/pull/1193 Why didn't was accepted yet? :-(
This pull request has been scheduled to be reviewed in next 2 weeks.
Nice, thanks Neeraj! :-)
Just one observation: Since I made that pull request, some files were changed (TiMapView.h, for example). But, if you put my different lines in the new file, will work fine.
Estimated effort includes defining and implementing the same behavior on both iOS and Android platforms.
Hello Neeraj or Rafael, a question to better understand this feature: Will one result of drag&dropping the map pin annotation be the geocode of the new location visualized by the pin? I imagine the annotation's properties latitude and longitude then will be updated so one can use them for let's say forward geocoding or so.
Hello MAIRDUMONT, Yes, the latitude/longitude of annotation will be updated when the user drag&drop the annotation. The user have to click in the annotation by 1 second and drop in another place. Then, the annotation will have the latitude/longitude from the other place. :-)
Neeraj, is missing something to apply this PR? Thanks,
@Rafael - we are a little behind processing these pull requests. We hope to get to your pull request in a week or so.
This PR only covers iOS functionality so we need to design and implement the same functionality for Android and Mobile Web platforms. We will process this PR once we scope it out for all platforms.
I made a new pull request to it. Link: https://github.com/appcelerator/titanium_mobile/pull/1670
Test Code
The code was accepted: https://github.com/appcelerator/titanium_mobile/pull/1670. Can this feature enter in the SDK 2.0?
PR merged for IOS. Tickets created for Android, MobileWeb and documentation
Tested with 2.1.0.v20120606162652 on iPod 3rd gen 4.0.2 and iPad Sim 5.0