[TIMOB-1475] Map Annotations do not animate on initial drop 1.4 iOS 4
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2011-04-15T02:53:52.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Backlog |
Components | iOS |
Labels | animate, annotation, apple, bug, defect, ios, iphone, map |
Reporter | ctredway |
Assignee | Blain Hamon |
Created | 2011-04-15T02:53:50.000+0000 |
Updated | 2017-03-03T06:13:38.000+0000 |
Description
A customer brought to our attention that with 1.4 on iOS 4 (iphone) map annotations do not animate when they drop. The following code shows this. I also verified with the latest KS map_view.js as well.
var win = Titanium.UI.currentWindow;
// Karta
var mapview = Titanium.Map.createView({
mapType: Titanium.Map.STANDARD_TYPE,
region: {latitude:41.846715, longitude:-87.9587622, latitudeDelta:0.01, longitudeDelta:0.01},
animate:true,
regionFit:true,
userLocation:true,
});
win.add(mapview);
for (i=0;i<=15;i++){
var ann1 = Titanium.Map.createAnnotation({
latitude:'41.84' + Math.floor(Math.random()*9) + '715',
longitude:'-87.95' + Math.floor(Math.random()*9) + '7622',
title:"Starbucks " + i,
subtitle: Math.floor(Math.random()*9) + '' + Math.floor(Math.random()*9) + ' Main Street, Greenwood, Indiana 46143',
pincolor:Titanium.Map.ANNOTATION_GREEN,
animate:true,
rightButton: Titanium.UI.iPhone.SystemButton.DISCLOSURE,
myid: i // CUSTOM ATTRIBUTE THAT IS PASSED INTO EVENT OBJECTS
});
mapview.addAnnotation(ann1); //put pin on map
}
More info: http://developer.appcelerator.com/helpdesk/view/33311">http://developer.appcelerator.com/helpdesk/view/33311
As I said in the helpdesk, this works fine in 1.3.0. Unfortunately I can't release the app in 1.3.0 due to other things that are broken. I'm guessing sometime when the custom pins code was added, the code this was altered somehow.
Also if you open up map_view.js from KS in 1.4.0 and click on the detail arrow on the "alanta,Ga" Annotation, an new Annotation is dropped and this new Annotation has the animated drop effect.
Sj, thats not a new annotation but the original annotation modified.
I'm having the same issue
http://ecito.com/2010/08/twitter-streaming-api-node-js-appcelerator-titanium-real-time-tweet-map/"> http://ecito.com/2010/08/twitter-streaming-api-node-js-appcelerator...
This has happened to me before on regular Objective-C apps when there's a mistake or something in the MKAnnotationView subclass. I think an image is being set invalidly
I guess the above confirms this thread: http://developer.appcelerator.com/question/47911/titaniummap-in-140---no-animation-of-the-pin-and-error"> http://developer.appcelerator.com/question/47911/titaniummap-in-140...
Can also confirm this being a problem and that missing image error showing up in the logs.
Guys, have u heard anything if a patch is coming?
Unfortunately, this is a duplicate of #2490, which was confirmed to happen outside of Titanium.
Closing issue due to time passed and irrelevance of the ticket.