{ "id": "172109", "key": "MOD-2458", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10034", "key": "MOD", "name": "Appcelerator Modules", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2019-01-25T23:35:05.000+0000", "created": "2018-08-21T21:15:32.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "ybanev", "key": "ybanev", "displayName": "Yordan Banev", "active": true, "timeZone": "Europe/Athens" }, "updated": "2019-01-25T23:35:08.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": "13700", "name": "Map" } ], "description": "removeAllAnnotations seems to work with the exception of it does not update the view, until you change the view (for example zoom in or out) then all annotations disappear. You can see this by uncommenting in add and remove function.\r\n\r\nremoveAnnotation(s) has no effect, in the example code we try to remove annotations prior to adding new set or when we click remove annotations button. When this is uncommented it just keeps adding annotations everytime with cluster counts going up. You can see this by uncommenting in add and remove function.\r\n", "attachment": [ { "id": "65465", "filename": "index.js", "author": { "name": "cliff_stander", "key": "cliff_stander", "displayName": "Mike Stancliffe", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-08-21T21:15:13.000+0000", "size": 1373, "mimeType": "application/javascript" }, { "id": "65464", "filename": "index.xml", "author": { "name": "cliff_stander", "key": "cliff_stander", "displayName": "Mike Stancliffe", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-08-21T21:15:28.000+0000", "size": 268, "mimeType": "text/xml" } ], "flagged": false, "summary": "Android Ti.Maps removing annotation issues 4.3.0 with clusters", "creator": { "name": "cliff_stander", "key": "cliff_stander", "displayName": "Mike Stancliffe", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "cliff_stander", "key": "cliff_stander", "displayName": "Mike Stancliffe", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "440983", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Does this also occur with Android v4.3.1 which we just released yesterday? You can download it [here|https://github.com/appcelerator-modules/ti.map/releases/tag/android-4.3.1].", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-08-22T10:34:08.000+0000", "updated": "2018-08-22T10:34:08.000+0000" }, { "id": "440991", "author": { "name": "cliff_stander", "key": "cliff_stander", "displayName": "Mike Stancliffe", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tried with 4.3.1 and now there seem to be more issues with annotations than before. Now adding annotations does not update until zooming(or other actions I assume, much like removing in 4.3.0) and now all ways I tried to remove annotations(removeAllAnnotations, removeAnnotation(s)) throws errors. I used the same code I attached originally.\r\n\r\n[ERROR] \b\b \bTiExceptionHandler: (main) [56216,62649] /alloy/controllers/index.js:107\r\n[ERROR] \b\b \bTiExceptionHandler: $.map.removeAnnotations(points),\r\n[ERROR] \b\b \bTiExceptionHandler: ^\r\n[ERROR] \b\b \bTiExceptionHandler: Error: Attempt to invoke virtual method 'void com.google.android.gms.maps.model.Marker.remove()' on a null object reference\r\n[ERROR] \b\b \bTiExceptionHandler: at Button.remove (/alloy/controllers/index.js:107:7)\r\n[ERROR] \b\b \bTiExceptionHandler: at Button.value (ti:/events.js:49:21)\r\n[ERROR] \b\b \bTiExceptionHandler: at Button.value (ti:/events.js:101:19)\r\n[ERROR] \b\b \bTiExceptionHandler:\r\n[ERROR] \b\b \bTiExceptionHandler: ti.map.TiUIMapView.removeAnnotation(TiUIMapView.java:590)\r\n[ERROR] \b\b \bTiExceptionHandler: ti.map.ViewProxy.handleRemoveAnnotation(ViewProxy.java:543)\r\n[ERROR] \b\b \bTiExceptionHandler: ti.map.ViewProxy.handleRemoveAnnotations(ViewProxy.java:534)\r\n[ERROR] \b\b \bTiExceptionHandler: ti.map.ViewProxy.removeAnnotations(ViewProxy.java:522)\r\n[ERROR] \b\b \bTiExceptionHandler: org.appcelerator.kroll.runtime.v8.V8Object.nativeFireEvent(Native Method)\r\n[ERROR] \b\b \bTiExceptionHandler: org.appcelerator.kroll.runtime.v8.V8Object.fireEvent(V8Object.java:63)\r\n[ERROR] \b\b \bTiExceptionHandler: org.appcelerator.kroll.KrollProxy.doFireEvent(KrollProxy.java:969)\r\n[ERROR] \b\b \bTiExceptionHandler: org.appcelerator.kroll.KrollProxy.handleMessage(KrollProxy.java:1194)\r\n[ERROR] \b\b \bTiExceptionHandler: org.appcelerator.titanium.proxy.TiViewProxy.handleMessage(TiViewProxy.java:394)\r\n[ERROR] \b\b \bTiExceptionHandler: android.os.Handler.dispatchMessage(Handler.java:101)\r\n[ERROR] \b\b \bV8Exception: Exception occurred at /alloy/controllers/index.js:107: Uncaught Error: Attempt to invoke virtual method 'void com.google.android.gms.maps.model.Marker.remove()' on a null object reference", "updateAuthor": { "name": "cliff_stander", "key": "cliff_stander", "displayName": "Mike Stancliffe", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-08-22T16:38:17.000+0000", "updated": "2018-08-22T16:39:55.000+0000" }, { "id": "441190", "author": { "name": "ybanev", "key": "ybanev", "displayName": "Yordan Banev", "active": true, "timeZone": "Europe/Athens" }, "body": "PR: https://github.com/appcelerator-modules/ti.map/pull/245", "updateAuthor": { "name": "ybanev", "key": "ybanev", "displayName": "Yordan Banev", "active": true, "timeZone": "Europe/Athens" }, "created": "2018-08-29T15:01:46.000+0000", "updated": "2018-08-29T15:01:46.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }