{ "id": "175690", "key": "AC-6626", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": null, "resolutiondate": null, "created": "2020-11-03T14:26:06.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2021-01-22T17:06:38.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [], "description": "I've created an issue on github already when the PR got merged:\r\nhttps://github.com/appcelerator-modules/ti.map/issues/342\r\n\r\nWith this https://github.com/appcelerator-modules/ti.map/pull/336 PR the Marker popups are not opening every time and a click on the boxes don't fire a click. \r\n\r\n*infoWindow click:*\r\nhttps://github.com/appcelerator-modules/ti.map/blob/master/android/src/ti/map/TiMapInfoWindow.java#L208\r\np is null and\r\n\r\nhttps://github.com/appcelerator-modules/ti.map/blob/master/android/src/ti/map/TiMapInfoWindow.java#L213\r\nis returning 0/0 for me so it is not going into the if-case\r\n\r\n*pin click to open infoWindow*\r\nlooks like it depends on the zoom level somehow\r\n\r\n*example*\r\n{code}\r\nvar Map = require('ti.map');\r\nvar win = Titanium.UI.createWindow();\r\nvar annotations = [];\r\n\r\nvar mapview = Map.createView({\r\n mapType: Map.NORMAL_TYPE,\r\n animate: true,\r\n regionFit: true\r\n});\r\n\r\n\r\nfor (var i = 0; i < 10; i++) {\r\n\tannotations.push(Map.createAnnotation({\r\n\t\ttitle: 'Appcelerator Inc.',\r\n\t\tsubtitle: 'TiRocks!',\r\n\t\tclusterIdentifier: 'abc', // Required for clusters\r\n\t\tcollisionMode: Map.ANNOTATION_VIEW_COLLISION_MODE_RECTANGLE,\r\n\t\tshowAsMarker: true,\r\n\t\tmarkerGlyphText: i.toString(),\r\n\t\tmarkerColor: 'blue',\r\n\t\tmarkerGlyphColor: 'green',\r\n\t\tmarkerTitleVisibility: Map.FEATURE_VISIBILITY_VISIBLE,\r\n\t\tmarkerSubtitleVisibility: Map.FEATURE_VISIBILITY_HIDDEN,\r\n\t\tmarkerGlyphImage: 'path/to/flag.png',\r\n\t\tmarkerSelectedGlyphImage: 'path/to/flag-selected.png',\r\n\t\tannotationDisplayPriority: Map.FEATURE_DISPLAY_PRIORITY_DEFAULT_LOW,\r\n\t\tlatitude: 40 + Math.random() * 0.1,\r\n\t\tlongitude: 10 + Math.random() * 0.1,\r\n\t}));\r\n}\r\n\r\nmapview.region = {\r\n\tlatitude: 40 + Math.random() * 0.1,\r\n\tlongitude: 10 + Math.random() * 0.1,\r\n\tlatitudeDelta: 0.2,\r\n\tlongitudeDelta: 0.2\r\n}\r\n\r\n\r\nmapview.addEventListener('clusterstart', function(e) {\r\n\tTi.API.info('clustering started!');\r\n\r\n\tvar clusterAnnotation = Map.createAnnotation({\r\n\t\tshowAsMarker: true,\r\n\t\tmarkerText: e.memberAnnotations.length.toString(),\r\n\t\ttitle: 'Cluster Title',\r\n\t\tsubtitle: 'Cluster Subtitle',\r\n\t});\r\n\r\n\tmapview.setClusterAnnotation({\r\n\t\tannotation: clusterAnnotation,\r\n\t\tmemberAnnotations: e.memberAnnotations\r\n\t});\r\n});\r\nmapview.addEventListener('click', function(event) {\r\n Ti.API.info('Clicked ' + event.clicksource + ' on ' + event.latitude + ', ' + event.longitude);\r\n});\r\nmapview.annotations = annotations;\r\nwin.add(mapview);\r\nwin.open();\r\n{code}\r\n\r\nAnnoations not opening all the time. Working fine with 5.2.0", "attachment": [], "flagged": false, "summary": "Android: ti.map 5.3.0 clicks are not working correctly", "creator": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "comment": { "comments": [ { "id": "458069", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "body": "PR: https://github.com/appcelerator-modules/ti.map/pull/386", "updateAuthor": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2021-01-22T17:06:38.000+0000", "updated": "2021-01-22T17:06:38.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }