{ "id": "116940", "key": "TIMOB-14494", "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": [], "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2018-01-29T03:41:33.000+0000", "created": "2013-07-08T13:36:20.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "Ti.map", "Titanium", "iOS", "mobilesdk" ], "versions": [ { "id": "14613", "description": "Release 2.1.4", "name": "Release 2.1.4", "archived": true, "released": true, "releaseDate": "2012-11-12" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "15478", "description": "Release 3.1.1", "name": "Release 3.1.1", "archived": true, "released": true, "releaseDate": "2013-06-17" } ], "issuelinks": [ { "id": "56272", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "165456", "key": "MOD-2322", "fields": { "summary": "iOS/Android: Add mapclick event to MapView in Ti.Map Module", "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": "Critical", "id": "1" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } }, { "id": "31290", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "84958", "key": "TIMOB-7206", "fields": { "summary": "iOS: add support for map annotation bubble to be a custom view", "status": { "description": "This issue was once resolved, but the resolution was deemed incorrect. From here issues are either marked assigned or resolved.", "name": "Reopened", "id": "4", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "priority": { "name": "Low", "id": "4" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } } ], "assignee": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2018-08-06T17:41: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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "Touch events are currently only fired on Map Annotations and not else where on the map view. \r\nImplement touch events on the Map View.", "attachment": [], "flagged": false, "summary": "iOS: Ti.Map should handle touch events on the view not just annotations", "creator": { "name": "anigam", "key": "anigam", "displayName": "Ashish Nigam", "active": true, "timeZone": "Asia/Kolkata" }, "subtasks": [], "reporter": { "name": "anigam", "key": "anigam", "displayName": "Ashish Nigam", "active": true, "timeZone": "Asia/Kolkata" }, "environment": "Titanium Mobile SDK, iOS, Ti.Map", "closedSprints": [ { "id": 990, "state": "closed", "name": "2018 Sprint 02 SDK", "startDate": "2018-01-14T22:48:43.544Z", "endDate": "2018-01-28T22:48:00.000Z", "completeDate": "2018-01-29T16:22:42.911Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "266728", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I'm looking at this now, but have concerns. [Apple's documentation|https://developer.apple.com/library/ios/documentation/MapKit/Reference/MKMapView_Class/MKMapView/MKMapView.html] says, \"Although you should not subclass the MKMapView class itself, you can get information about the map view’s behavior by providing a delegate object.\" We currently do, but this delegate gets events that are NOT the simple touch events.\n\nI'm currently looking at the feasibility of subclassing Map View anyways, to see if that even is a solution; it's possible that the event handling is done deep in the private bowels of MKMapView.\n\nThe other option may be with gesture recognizers, but these are NOT the same as the touch handlers.\n\nMay I enquire as to what you're trying to do with these listeners? Maybe there's a different solution that works better.", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-08-15T19:01:47.000+0000", "updated": "2013-08-15T19:01:47.000+0000" }, { "id": "266737", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Update: With a subclass of MKMapView, and listeners of the touch events, it turns out that the actual panning is started with a touch cancelled event. In other words, natively, the view events for moving about the map are:\n* touchstart once\n* touchmove three times before the map starts to pan.\n* touchcancel once as the map starts to pan.\n* never does a touchend event happen.\n\nA double-tap on the map is as follows:\n* touchstart once\n* touchcancel once as the map logic overrides.\n* never does a touchend event happen, nor a second touchstart.\n\nI am not sure that providing this behavior would be sufficient and meet the customer's needs.", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-08-15T19:23:46.000+0000", "updated": "2013-08-15T19:23:46.000+0000" }, { "id": "266750", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Looks like gestures won't help with panning or zooming either, unfortunately. Similarly, gestures for double-taps don't work, either. It's highly likely that we will not be able to provide touch events, due to the design of MKMapView.\n\nI don't want to resolve it as \"Not our bug\" (IE, Apple's fault) just yet without asking again: What is the intent? Is there a way we can create customer success by another means?", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-08-15T21:01:13.000+0000", "updated": "2013-08-15T21:01:13.000+0000" }, { "id": "266758", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Need information from the customer about what functionality they need. It's highly likely that iOS's MKMapView is such that this information cannot be provided.", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-08-15T21:14:39.000+0000", "updated": "2013-08-15T21:14:39.000+0000" }, { "id": "267941", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Actually, looking at this, we already fire a click event for an annotation selection and deselection.", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-08-23T20:43:00.000+0000", "updated": "2013-08-23T20:43:00.000+0000" }, { "id": "267954", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Please reopen with sample", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-08-23T21:32:05.000+0000", "updated": "2013-08-23T21:32:05.000+0000" }, { "id": "270652", "author": { "name": "wellsayd", "key": "wellsayd", "displayName": "brian wells", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Here is an sample app https://github.com/AppceleratorSolutions/TitaniumProjects/tree/master/MapExtensions\r\n\r\nThis current solution for custom annotations that Alan created works great ... but the only way to close or remove an annotation from the screen is to move the map or click on another annotation. Other well done mobiles app, such as Zillow, Trulia, etc will remove the annotation from the map when the map is simply touched. We need the same user experience to happen in order to have a complete solution to what Alan has provided.\r\n\r\n", "updateAuthor": { "name": "wellsayd", "key": "wellsayd", "displayName": "brian wells", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-09-10T19:40:27.000+0000", "updated": "2013-09-10T19:40:27.000+0000" }, { "id": "319803", "author": { "name": "arkain", "key": "arkain", "displayName": "Ranando King", "active": true, "timeZone": "America/Chicago" }, "body": "I'm having similar trouble. We need our callout to handle click events. From what Apple's documentation says, subclassing MKMapView is both unwanted and unnecessary for this. A slight modification of TiMapCustomAnnotationView should be sufficient.\r\n\r\nOverride (BOOL)pointInside:(CGPoint)point withEvent:(UIEvent *)event\r\n\r\nThis should be used to return YES if point is in a non-transparent area of theProxy. That should fix the problem with (UIView *)hitTest:(CGPoint) point withEvent:(UIEvent *)event not returning a view when the callout is clicked. This will enable clickable callouts.\r\n\r\nI really need this feature today. I was trying to rebuild the map module for myself but ended up with an error that didn't make sense to me.\r\n\r\nTraceback (most recent call last):\r\n File \"./build.py\", line 220, in \r\n build_module(manifest,config)\r\n File \"./build.py\", line 165, in build_module\r\n from tools import ensure_dev_path\r\nImportError: No module named tools\r\n\r\nOtherwise I'd be submitting a patch instead of suggesting how to fix this.", "updateAuthor": { "name": "arkain", "key": "arkain", "displayName": "Ranando King", "active": true, "timeZone": "America/Chicago" }, "created": "2014-08-21T21:51:25.000+0000", "updated": "2014-08-21T21:51:25.000+0000" }, { "id": "353845", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Deferring this due to lack of bandwidth this sprint.", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-05-29T00:44:56.000+0000", "updated": "2015-05-29T00:44:56.000+0000" }, { "id": "433702", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "\"mapclick\" event get supported as part of MOD-2322. ", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-01-26T05:24:40.000+0000", "updated": "2018-01-26T05:24:40.000+0000" }, { "id": "439994", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as a duplicate. If this is in error, please reopen.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-08-06T17:41:08.000+0000", "updated": "2018-08-06T17:41:08.000+0000" } ], "maxResults": 21, "total": 21, "startAt": 0 } } }