{ "id": "109883", "key": "TIMOB-12787", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "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": "15703", "description": "2013 Sprint 22", "name": "2013 Sprint 22", "archived": true, "released": true, "releaseDate": "2013-11-01" }, { "id": "15704", "description": "2013 Sprint 22 API", "name": "2013 Sprint 22 API", "archived": true, "released": true, "releaseDate": "2013-11-01" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-10-24T22:38:35.000+0000", "created": "2013-02-19T20:06:17.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_map", "qe-testadded" ], "versions": [], "issuelinks": [ { "id": "25932", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "outwardIssue": { "id": "108770", "key": "TIMOB-12479", "fields": { "summary": "iOS: Allow map annotation to fire a click event without showing the callout", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } } ], "assignee": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-11-21T01:55:18.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": "h1. Feature description\r\nWhen clicking on a map annotation, a callout is always shown. Need to avoid the callout to be displayed, and fire the click event anyway.\r\n\r\nTesting Code: \r\n{code}\r\nvar MapModule = require('ti.map');\r\nvar win = Ti.UI.createWindow({fullscreen: false});\r\nvar anno2 = MapModule.createAnnotation({latitude: -33.86365, pincolor: MapModule.ANNOTATION_BLUE, longitude: 151.21689, title: \"Anno2\", subtitle: \"This is anno2\", draggable: true});\r\nvar anno4 = MapModule.createAnnotation({latitude: -33.86365, longitude: 151.22689, title: \"Anno4\", subtitle: \"This is anno4\", draggable: true});\r\n\r\nvar map = MapModule.createView({\r\n\tuserLocation: true,\r\n\tmapType: MapModule.NORMAL_TYPE,\r\n\tanimate: true,\r\n\tannotations: [anno2, anno4],\r\n\tregion: {latitude: -33.87365, longitude: 151.20689, latitudeDelta: 0.1, longitudeDelta: 0.1 }, //Sydney\r\n\ttop: '30%'\r\n});\r\nwin.add(map);\r\n\r\nmap.addEventListener('click', function(e) {\r\n\tTi.API.info(\"Latitude: \" + e.latitude);\r\n\tTi.API.info(\"Source: \" + e.clicksource);\r\n});\r\nvar button = Ti.UI.createButton({top: 0, left: 0, title: \"Blue Anno Info Window Enabled\"});\r\nbutton.addEventListener('click', function(e) {\r\n if (!anno2.showInfoWindow) {\r\n\t\tanno2.showInfoWindow = true;\r\n\t\tbutton.title = \"Blue Anno Info Window Enabled\";\r\n\t} else {\r\n\t\tanno2.showInfoWindow = false;\r\n\t\tbutton.title = \"Blue Anno Info Window Disabled\";\r\n\t}\r\n});\r\n\r\nvar button2 = Ti.UI.createButton({top: 100, left: 0, title: \"Red Anno Info Window Enabled\"});\r\nbutton2.addEventListener('click', function(e) {\r\n if (!anno4.showInfoWindow) {\r\n\t\tanno4.showInfoWindow = true;\r\n\t\tbutton2.title = \"Red Anno Info Window Enabled\";\r\n\t} else {\r\n\t\tanno4.showInfoWindow = false;\r\n\t\tbutton2.title = \"Red Anno Info Window Disabled\";\r\n\t}\r\n});\r\n\r\n\r\n\r\nwin.add(button);\r\nwin.add(button2);\r\nwin.open();\r\n{code}\r\n\r\n1. Run code, toggle the property, make sure window info doesn't show when showInfoWindow is false.", "attachment": [], "flagged": false, "summary": "Android: Allow map annotation to fire a click event without showing the callout", "creator": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "comment": { "comments": [ { "id": "272725", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Map Module only", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-09-24T20:47:44.000+0000", "updated": "2013-09-24T20:47:44.000+0000" }, { "id": "276529", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Master PR: https://github.com/appcelerator-modules/ti.map/pull/15", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-24T01:58:40.000+0000", "updated": "2013-10-24T01:58:40.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }