{ "id": "127566", "key": "TIMOB-16623", "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": [], "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2016-03-13T14:48:52.000+0000", "created": "2014-03-12T15:56:22.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "ios", "ti.map" ], "versions": [ { "id": "15857", "description": "Release 3.2.2", "name": "Release 3.2.2", "archived": false, "released": true, "releaseDate": "2014-03-09" } ], "issuelinks": [], "assignee": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-13T14:48:52.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": "I store all my annotations in an array. \r\n\r\nWhen removing the array (mapview.removeAnnotations(annotationsArr)) they all disappear, but when re-adding them (mapview.addAnnotations(annotationsArr)), only a few re-appear.\r\n\r\nThey still seem to be there, since they are still \"clickable\", but they won't show. \r\n\r\nThis only happens when using the customView property in annotations. When not using the customView, and only using the standard pins, there seems to be no problem.\r\n\r\napp.js and a simple \"H\" image attached.\r\n\r\nAdd the \"busStop.png\" image to Resources\\images\r\n\r\nTestcase:\r\nUsing customView:\r\n1. Run the app.\r\n2. Press the Hide/Show annotations button. (The annotations disappear)\r\n3. Press the Hide/Show annotations button again. (Only some annotations reappear)\r\n\r\nUsing standard pins:\r\n1. Run the app.\r\n2. Press the Hide/Show annotations button. (The annotations disappear)\r\n3. Press the Hide/Show annotations button. (The annotations reappear)\r\n\r\nThe problem only seem to exist on iOS, using the same code works on android (Titanium SDK 3.1.3.GA).\r\n\r\nThanks.", "attachment": [ { "id": "46576", "filename": "app.js", "author": { "name": "jimmie", "key": "jimmie", "displayName": "Jimmie Jönsson", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-03-12T15:56:22.000+0000", "size": 1562, "mimeType": "application/x-javascript" }, { "id": "46575", "filename": "busStop.png", "author": { "name": "jimmie", "key": "jimmie", "displayName": "Jimmie Jönsson", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-03-12T15:56:22.000+0000", "size": 2165, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: Some annotations won't show when removing and re-adding if the annotations has a customView", "creator": { "name": "jimmie", "key": "jimmie", "displayName": "Jimmie Jönsson", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jimmie", "key": "jimmie", "displayName": "Jimmie Jönsson", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "OS X 10.9.2 \r\nXcode 5.0\r\nTitanium SDK 3.2.2.GA\r\nTi.Map module", "comment": { "comments": [ { "id": "296948", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Moving this ticket to engineering as I can reproduce this issue with the provided test case on iOS simulator. Standard pin works fine but custom view does not.", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-03-13T05:22:34.000+0000", "updated": "2014-03-13T05:22:34.000+0000" }, { "id": "379620", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-03-13T14:48:52.000+0000", "updated": "2016-03-13T14:48:52.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }