Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-1475] Map Annotations do not animate on initial drop 1.4 iOS 4

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionDuplicate
Resolution Date2011-04-15T02:53:52.000+0000
Affected Version/sn/a
Fix Version/sBacklog
ComponentsiOS
Labelsanimate, annotation, apple, bug, defect, ios, iphone, map
Reporterctredway
AssigneeBlain Hamon
Created2011-04-15T02:53:50.000+0000
Updated2017-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
}

Comments

  1. Sj101 2011-04-15

    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.

  2. ctredway 2011-04-15

    Sj, thats not a new annotation but the original annotation modified.

  3. Andre Navarro 2011-04-15

    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

  4. Sj101 2011-04-15

    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...

  5. Matthew Lieder 2011-04-15

    Can also confirm this being a problem and that missing image error showing up in the logs.

  6. Joe Maffia 2011-04-15

    Guys, have u heard anything if a patch is coming?

  7. Blain Hamon 2011-04-15

    Unfortunately, this is a duplicate of #2490, which was confirmed to happen outside of Titanium.

  8. Lee Morris 2017-03-03

    Closing issue due to time passed and irrelevance of the ticket.

JSON Source