{ "id": "114837", "key": "TIMOB-13989", "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": "15695", "description": "2013 Sprint 20", "name": "2013 Sprint 20", "archived": true, "released": true, "releaseDate": "2013-10-04" }, { "id": "15696", "description": "2013 Sprint 20 API", "name": "2013 Sprint 20 API", "archived": true, "released": true, "releaseDate": "2013-10-04" }, { "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": "2014-05-28T12:59:49.000+0000", "created": "2013-05-23T07:30:36.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "android", "event", "eventlistener", "longpress", "mapView", "module_map", "qe-testadded", "triage" ], "versions": [ { "id": "15971", "description": "Release 3.2.3", "name": "Release 3.2.3", "archived": false, "released": true, "releaseDate": "2014-04-30" } ], "issuelinks": [], "assignee": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "updated": "2014-05-28T12:59:49.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": "In the progress of developing my app I recognized that the mapview of the Google Maps v2 API for Android can't handle longpress events. For my app and as i think also for other developers this is an important feature to simulate the behavior of the native google maps app. On Android like on ios this is the native gesture to let the user generate custom annotations for example to mark a position.\r\nHacks like creating a view which overlays the mapview also doesn't work because this view intercepts also other click events.", "attachment": [], "flagged": false, "summary": "Android: Implement longpress event for Google Maps v2", "creator": { "name": "davidthulke", "key": "davidthulke", "displayName": "David Thulke", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "davidthulke", "key": "davidthulke", "displayName": "David Thulke", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium, Google Maps v2 Api for Android", "comment": { "comments": [ { "id": "253964", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi David,\r\n\r\nI've escalated your request. If you'd like to help out further, a simple test case demonstrating the lacking functionality would be appreciated.\r\n\r\nAlso please state your current Ti SDK version.\r\n\r\nThanks!", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-25T00:02:24.000+0000", "updated": "2013-05-25T00:02:55.000+0000" }, { "id": "254082", "author": { "name": "davidthulke", "key": "davidthulke", "displayName": "David Thulke", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi Daniel,\r\n\r\nmy Ti SDK version 3.1.0.\r\n\r\nIn my case I've created an app where the user shall mark certain places on a map. I want to implement this functionality like in the Google Maps Android app where an annotation is created by a longpress. But on android this event doesn't fire like on ios.\r\n\r\nTo clarify the case here is a short test code which is working on ios but not on andorid:\r\n\r\nmapview.addEventListener('longpress',function(e){\r\n alert(e);\r\n});\r\nwin.win.add(mapview);", "updateAuthor": { "name": "davidthulke", "key": "davidthulke", "displayName": "David Thulke", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-27T08:14:26.000+0000", "updated": "2013-05-27T08:14:26.000+0000" }, { "id": "262425", "author": { "name": "qoerz", "key": "qoerz", "displayName": "Carlo Hermus", "active": true, "timeZone": "Europe/Berlin" }, "body": "Hi,\r\n\r\nAny progress on an ETA?\r\nI need this option.\r\n\r\nCheers,\r\n\r\nCarlo", "updateAuthor": { "name": "qoerz", "key": "qoerz", "displayName": "Carlo Hermus", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-07-19T09:03:56.000+0000", "updated": "2013-07-19T09:03:56.000+0000" }, { "id": "263018", "author": { "name": "qoerz", "key": "qoerz", "displayName": "Carlo Hermus", "active": true, "timeZone": "Europe/Berlin" }, "body": "Hi,\r\n\r\nAny ETA? And progress update please.", "updateAuthor": { "name": "qoerz", "key": "qoerz", "displayName": "Carlo Hermus", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-07-24T19:40:54.000+0000", "updated": "2013-07-24T19:40:54.000+0000" }, { "id": "263142", "author": { "name": "qoerz", "key": "qoerz", "displayName": "Carlo Hermus", "active": true, "timeZone": "Europe/Berlin" }, "body": "Hi,\r\n\r\nAny ETA?", "updateAuthor": { "name": "qoerz", "key": "qoerz", "displayName": "Carlo Hermus", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-07-25T12:50:05.000+0000", "updated": "2013-07-25T12:50:05.000+0000" }, { "id": "263922", "author": { "name": "qoerz", "key": "qoerz", "displayName": "Carlo Hermus", "active": true, "timeZone": "Europe/Berlin" }, "body": "Any ETA?", "updateAuthor": { "name": "qoerz", "key": "qoerz", "displayName": "Carlo Hermus", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-07-30T13:48:06.000+0000", "updated": "2013-07-30T13:48:06.000+0000" }, { "id": "265692", "author": { "name": "qoerz", "key": "qoerz", "displayName": "Carlo Hermus", "active": true, "timeZone": "Europe/Berlin" }, "body": "Any ETA on a nightly?", "updateAuthor": { "name": "qoerz", "key": "qoerz", "displayName": "Carlo Hermus", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-08-09T02:32:39.000+0000", "updated": "2013-08-09T02:32:39.000+0000" }, { "id": "267483", "author": { "name": "qoerz", "key": "qoerz", "displayName": "Carlo Hermus", "active": true, "timeZone": "Europe/Berlin" }, "body": "Although it lacks communication around here, just trying again. Any ETA on this bug, which is wrongly classified as a new feature?", "updateAuthor": { "name": "qoerz", "key": "qoerz", "displayName": "Carlo Hermus", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-08-21T16:46:17.000+0000", "updated": "2013-08-21T16:46:17.000+0000" }, { "id": "267486", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~qoerz] It's currently scheduled for 3.2.0 (early December). I've placed it into Sprint 19, which means you may see it in a nightly as soon as end of September.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-08-21T16:51:10.000+0000", "updated": "2013-08-21T16:51:10.000+0000" }, { "id": "270368", "author": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Added support for longclick\r\n\r\nhttps://github.com/appcelerator-modules/ti.map/pull/7\r\n", "updateAuthor": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-09-09T17:55:39.000+0000", "updated": "2013-09-09T17:55:39.000+0000" }, { "id": "271052", "author": { "name": "qoerz", "key": "qoerz", "displayName": "Carlo Hermus", "active": true, "timeZone": "Europe/Berlin" }, "body": "Sunila, do you also have a binairy you can upload to your fork? This will help me a lot.", "updateAuthor": { "name": "qoerz", "key": "qoerz", "displayName": "Carlo Hermus", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-09-13T12:40:38.000+0000", "updated": "2013-09-13T12:40:38.000+0000" }, { "id": "272400", "author": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Added a new pull request to merge to master\n\nhttps://github.com/appcelerator-modules/ti.map/pull/13", "updateAuthor": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-09-22T19:41:28.000+0000", "updated": "2013-09-22T19:41:28.000+0000" }, { "id": "273445", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Test case: \n{code}\nvar win = Ti.UI.createWindow({\n modal: false,\n backgroundColor: 'white'\n});\n \n\n \nvar MapModule = require('ti.map');\nvar map = MapModule.createView({\n mapType:MapModule.NORMAL_TYPE\n});\n\nmap.addEventListener('longclick',function(e) {\n Ti.API.info('map is clicked at: ' + e.longitude + ' longitude, ', + e.latitude + ' latitude' ); \n});\nwin.add(map);\nwin.open();\n{code}\n\n1. Run code\n2. Long click on map, observe log", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-09-30T21:20:39.000+0000", "updated": "2013-09-30T21:20:39.000+0000" }, { "id": "274032", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "CR + FR", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-07T17:00:47.000+0000", "updated": "2013-10-07T17:00:47.000+0000" }, { "id": "276334", "author": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified with test environment:\r\n\r\nAppc-Studio: 3.2.0.201310230601\r\nSdk:3.2.0.v20131022171645\r\nalloy:1.2.2\r\nnpm:1.3.2\r\ntitanium:3.2.0\r\ntitanium-code-processor:1.0.3\r\nDevice:Google Nexus 7(v4.3)\r\nXcode: 5\r\nOS: Mac OSX 10.8\r\n\r\n\r\nAndroid: MapView longpress event still not working for Google Maps v2.", "updateAuthor": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-23T11:26:32.000+0000", "updated": "2013-10-23T11:26:32.000+0000" }, { "id": "276386", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Priya, which map zip are you testing this with? ", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-23T18:18:11.000+0000", "updated": "2013-10-23T18:18:11.000+0000" }, { "id": "276763", "author": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I am using the latest Android ti.map version 2.1.2", "updateAuthor": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-25T11:01:27.000+0000", "updated": "2013-10-25T11:01:27.000+0000" }, { "id": "277240", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Priya, it looks like you're not using the latest map build. Please grab the zip from https://github.com/appcelerator-modules/ti.map/tree/master for testing purposes. Our current version is 2.1.3.", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-29T20:30:30.000+0000", "updated": "2013-10-29T20:30:30.000+0000" }, { "id": "277693", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~hpham] Should we re-resolve this?", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-11-01T16:18:02.000+0000", "updated": "2013-11-01T16:18:02.000+0000" }, { "id": "299126", "author": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "body": "longpress event does not occur, so reopening the bug.\r\n\r\nEnvironment used\u0010:\r\nDevice : Google Nexus 5, Android Version: 4.4.2\r\nDevice : HTC desire V , Android version : 4.0.3\r\nAndroid ti.map version: 2.1.4\r\nSDK: 3.2.3.v20140327115429\r\nCLI version : 3.2.3-alpha2\r\nOS : MAC OSX 10.9.2\r\nAlloy: 1.3.1\r\nACS: 1.0.14\r\nnpm:1.3.2\r\nAppcelerator Studio, build: 3.2.3.201403271826\r\ntitanium-code-processor: 1.1.1-alpha\r\nXCode : 5.1 ", "updateAuthor": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-03-28T08:07:45.000+0000", "updated": "2014-03-28T08:08:28.000+0000" }, { "id": "305156", "author": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "body": "I copied the ti.map-android-2.1.5.zip from https://github.com/appcelerator-modules/ti.map/tree/master and integrated in a sample in Titanium studio, used the sample code that Hieu mentioned above. I can see the event getting fired.\r\nHere is the console output\r\n[INFO][TiAPI (16023)] map is clicked at: 27.773438170552254 longitude, -14.093940268291233 latitude\r\n\r\n", "updateAuthor": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-05-15T19:13:02.000+0000", "updated": "2014-05-15T19:13:02.000+0000" }, { "id": "305661", "author": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The longpress event gets fired. The issue is not reproducible using the sample code provided by Hieu when check on following environment:\r\n\r\nOSX: 10.9.2\r\nAppcelerator Studio: 3.3.0.201405161313\r\nTitanium SDK: 3.3.0.v20140516180912\r\nCLI: 3.3.0-alpha2\r\nAndroid ti.map version: 2.1.4\r\nAndroid Device: Google Nexus 5 (v4.4.2)\r\n", "updateAuthor": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-05-20T08:50:52.000+0000", "updated": "2014-05-20T08:50:52.000+0000" }, { "id": "306292", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the issue is not reproducible. Longpress works as expected in android maps v2.\r\n\r\nClosing.\r\n\r\nEnvironment:\r\nAppc Studio : 3.3.0.201405211748\r\nTi SDK : 3.3.0.v20140522144936\r\nMac OSX : 10.8.5\r\nAlloy : 1.4.0-alpha2\r\nCLI - 3.3.0-alpha5\r\nCode Processor: 1.1.1\r\nSamsung Galaxy S4 running android 4.2.2", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-05-23T18:43:35.000+0000", "updated": "2014-05-23T18:43:35.000+0000" }, { "id": "306626", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Removing Sprint", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-05-28T12:59:49.000+0000", "updated": "2014-05-28T12:59:49.000+0000" } ], "maxResults": 24, "total": 24, "startAt": 0 } } }