{ "id": "61678", "key": "TIMOB-1046", "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": "11224", "name": "Release 1.4.0", "archived": true, "released": true, "releaseDate": "2010-07-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:55:03.000+0000", "created": "2011-04-15T02:42:26.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:55:03.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{html}

in Kitchen Sink - Base UI -> Views -> Map View

{html}", "attachment": [], "flagged": false, "summary": "calling selectAnnotation on mapview outside of event listener does not work", "creator": { "name": "nwright", "key": "nwright", "displayName": "Nolan Wright", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "nwright", "key": "nwright", "displayName": "Nolan Wright", "active": false, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "124672", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

This should have been fixed by #918 but\nthere are a couple changes I can make to the code to make it more\nrobust (I think). Using this ticket as an excuse to go back in and\nclean up the original hack if possible.

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:42:26.000+0000", "updated": "2011-04-15T02:42:26.000+0000" }, { "id": "124673", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

From the MKMapView documentation:

\n
\n

If the specified annotation is not onscreen, and therefore does\nnot have an associated annotation view, this method has no\neffect.

\n
\n

Annotations do not become onscreen at least until the map view\nhas been drawn, which only happens at the end of the JS. Updated\nthe documentation to reflect this.

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:42:26.000+0000", "updated": "2011-04-15T02:42:26.000+0000" }, { "id": "124674", "author": { "name": "nwright", "key": "nwright", "displayName": "Nolan Wright", "active": false, "timeZone": "America/Los_Angeles" }, "body": "{html}

we have to figure this out. it's perfectly reasonable to want\nyour annotation to be visible when the map is rendered

{html}", "updateAuthor": { "name": "nwright", "key": "nwright", "displayName": "Nolan Wright", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:42:27.000+0000", "updated": "2011-04-15T02:42:27.000+0000" }, { "id": "124675", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

I agree that it's perfectly reasonable, but we can't do anything\nabout the limitations of MKMapView. I would say that we could queue\nselections, to be selected once the map is displayed, but this does\nnot get around the restriction that annotations must be visible on\nthe current map display to be selected.

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:42:27.000+0000", "updated": "2011-04-15T02:42:27.000+0000" }, { "id": "124676", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Okay, think I have a solution. Was a good idea to reopen\nthis.

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:42:27.000+0000", "updated": "2011-04-15T02:42:27.000+0000" }, { "id": "124677", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Alright, we can support the following:

\n\n

HOWEVER, the following features will still need to be added:

\n\n

These are much easier to do on the JS end than the Cocoa Touch\nend, so we may be able to stall on them for a while.

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:42:27.000+0000", "updated": "2011-04-15T02:42:27.000+0000" }, { "id": "124678", "author": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [23d0511b83365e6b3912ebbd517ca43a7dc9474f])\n[#1046 state:open] First set of fixes for map\nview add/select including small modifications to KS to test. Second\nset will involve moving the visible region to a newly selected\nannotation. \nhttp://github.com/appcelerator/titanium_mobile/commit/23d0511b83365...

{html}", "updateAuthor": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:42:27.000+0000", "updated": "2011-04-15T02:42:27.000+0000" }, { "id": "124679", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Hey, looks like the map view documentation is wrong. We can, in\nfact, select an annotation in the annotations list and the map\nautomatically jumps to the right point.

\n

However, selecting annotations that were added with\naddAnnotation(s) may not work. Need to take a look at the current\nannotation management framework as a result.

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:42:27.000+0000", "updated": "2011-04-15T02:42:27.000+0000" }, { "id": "124680", "author": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [3c14b2eec6b641ab53cbd43fa0aabab1161955ba])\nCloses #1046: Annotation addition/removal now happens\nimmediately, not on a delay. No idea why there was a delay in the\nfirst place; users can always use careful annotation management to\nbatch display. \nhttp://github.com/appcelerator/titanium_mobile/commit/3c14b2eec6b64...

{html}", "updateAuthor": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:42:28.000+0000", "updated": "2011-04-15T02:42:28.000+0000" } ], "maxResults": 9, "total": 9, "startAt": 0 } } }