{ "id": "63178", "key": "TIMOB-2546", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "11238", "name": "Release 1.6.0 M05", "archived": true, "released": true, "releaseDate": "2011-01-17" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:59:24.000+0000", "created": "2011-04-15T03:22:25.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "android", "defect", "mapview", "release-1.6.0" ], "versions": [], "issuelinks": [], "assignee": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2011-04-17T01:59:24.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "{html}

For example, addAnnotation(annotation) only does\nsomething useful if the view has already been created. This may be\nthe case with other properties as well, so whoever works on this\nshould look for that. Also check if it works to\naddAnnotation prior to creating the view in\niPhone.

\n

WORKAROUND: If you're wanting to set/remove annotations prior to\nadding the view (i.e., prior to win.add(mapview), keep\nthem in an array and then pass them as the annotations\ncreation property when you create the view. Better yet, if you're\nexperiencing this problem, it might be just a question of how to\norder your code: call win.add(mapview) and\nwin.open() before .addAnnotation. Because\n.addAnnotation (and .removeAnnotation)\nwill work if ....

\n
{html}", "attachment": [ { "id": "18163", "filename": "app.js", "author": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "created": "2011-04-15T03:22:25.000+0000", "size": 1055, "mimeType": "application/x-javascript" } ], "flagged": false, "summary": "Android: state of annotations added/removed prior to view creation is not reflected when view is created", "creator": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "comment": { "comments": [ { "id": "128734", "author": { "name": "joshua", "key": "joshua", "displayName": "Joshua", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Bill what about addAnnotations to update the map with new\nannotations. If you're adding one annotation no big deal, but if\nyour removing 50 and adding 60 addAnnotation is cumbersome and\nslow.

{html}", "updateAuthor": { "name": "joshua", "key": "joshua", "displayName": "Joshua", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:22:25.000+0000", "updated": "2011-04-15T03:22:25.000+0000" }, { "id": "128735", "author": { "name": "joshua", "key": "joshua", "displayName": "Joshua", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Bill I forgot to mention this is a problem in Android, iPhone\nworks wonderfully.

{html}", "updateAuthor": { "name": "joshua", "key": "joshua", "displayName": "Joshua", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:22:25.000+0000", "updated": "2011-04-15T03:22:25.000+0000" }, { "id": "128736", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "{html}

that will be addressed

{html}", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-04-15T03:22:26.000+0000", "updated": "2011-04-15T03:22:26.000+0000" }, { "id": "128737", "author": { "name": "joshua", "key": "joshua", "displayName": "Joshua", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

When is 1.5.1 slated for general release?

{html}", "updateAuthor": { "name": "joshua", "key": "joshua", "displayName": "Joshua", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:22:26.000+0000", "updated": "2011-04-15T03:22:26.000+0000" }, { "id": "128738", "author": { "name": "joshua", "key": "joshua", "displayName": "Joshua", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Did the ticket make it in 1.5.1? I downloaded the new sdk and it\nstill doesn't seem to work.

{html}", "updateAuthor": { "name": "joshua", "key": "joshua", "displayName": "Joshua", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:22:26.000+0000", "updated": "2011-04-15T03:22:26.000+0000" }, { "id": "128739", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

The ticket is still new and has not been worked on yet.

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:22:26.000+0000", "updated": "2011-04-15T03:22:26.000+0000" }, { "id": "128740", "author": { "name": "joshua", "key": "joshua", "displayName": "Joshua", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Hasn't the 1.5.1 release already gone out?

{html}", "updateAuthor": { "name": "joshua", "key": "joshua", "displayName": "Joshua", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:22:26.000+0000", "updated": "2011-04-15T03:22:26.000+0000" }, { "id": "128741", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Yes it has, what hasn't happened is me redistributing issues to\nother milestones. The purpose of 1.5.1 changed from when we\noriginally slotted the item here. Expect to see lots of shuffling\nas I move things around. Lighthouse is a crude tool for planning\nand it doesn't give us a good way to move things around privately\nwhile planning. When the ticket state goes to fixed-in-qa it has\nbeen pushed to a branch. When it's resolved it's passed QA in that\nbranch.

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:22:26.000+0000", "updated": "2011-04-15T03:22:26.000+0000" }, { "id": "128742", "author": { "name": "joshua", "key": "joshua", "displayName": "Joshua", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Gotcha, thank you for the info.

{html}", "updateAuthor": { "name": "joshua", "key": "joshua", "displayName": "Joshua", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:22:27.000+0000", "updated": "2011-04-15T03:22:27.000+0000" }, { "id": "128743", "author": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "body": "{html}

(from [d486fe7de107960866721bcd85cb44780893a8db])\n[#2519 state:fixed-in-qa] [#2546\nstate:fixed-in-qa] changed map annotations to be stored by\nproxy

\n

when adding or removing annotations, those will be stored in\nproxy. Upon the map actualybeing made visible, the annotations will\nbe made visible along with any annotations selected before the map\nis opened.
\n\nhttps://github.com/appcelerator/titanium_mobile/commit/d486fe7de107...

{html}", "updateAuthor": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "created": "2011-04-15T03:22:27.000+0000", "updated": "2011-04-15T03:22:27.000+0000" }, { "id": "128744", "author": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "body": "{html}

Please verify with the attached app. Upon launch, the annotation\nwill be added and selected before the map is added to the window or\nthe window is opened. The annotation should be automatically\nselected when the app launches without any user interaction.

{html}", "updateAuthor": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "created": "2011-04-15T03:22:29.000+0000", "updated": "2011-04-15T03:22:29.000+0000" }, { "id": "128745", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Verified on G1/1.6 and Nexus One/2.2.1 using build #e1cb22a

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:22:29.000+0000", "updated": "2011-04-15T03:22:29.000+0000" } ], "maxResults": 12, "total": 12, "startAt": 0 } } }