{ "id": "91843", "key": "TIMOB-9187", "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": null, "resolutiondate": null, "created": "2012-05-15T04:54:08.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "api" ], "versions": [], "issuelinks": [], "assignee": null, "updated": "2018-02-28T20:04:10.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": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "give access to MKUserLocation location @property(readonly, retain, nonatomic) CLLocation *location \r\nfrom the mapview ( no need to listen for GPS event in a mapview)\r\n\r\nconstraint : \r\n@property(readonly, nonatomic, getter=isUpdating) BOOL updating should also be exposed\r\n\r\n", "attachment": [], "flagged": false, "summary": "Ti.map.view add direct access to user's currentlocation ", "creator": { "name": "vince", "key": "vince", "displayName": "Vincent ", "active": true, "timeZone": "Europe/Paris" }, "subtasks": [], "reporter": { "name": "vince", "key": "vince", "displayName": "Vincent ", "active": true, "timeZone": "Europe/Paris" }, "environment": "IOS, mapkit", "comment": { "comments": [ { "id": "201775", "author": { "name": "vince", "key": "vince", "displayName": "Vincent ", "active": true, "timeZone": "Europe/Paris" }, "body": "could be also implemented under a new event for the mapview returning a LocationCoordinates object each time the userLocation is updated", "updateAuthor": { "name": "vince", "key": "vince", "displayName": "Vincent ", "active": true, "timeZone": "Europe/Paris" }, "created": "2012-07-06T03:28:34.000+0000", "updated": "2012-07-06T03:28:34.000+0000" }, { "id": "230687", "author": { "name": "vince", "key": "vince", "displayName": "Vincent ", "active": true, "timeZone": "Europe/Paris" }, "body": "that's what I did\r\n\r\n{code}\r\n- (void)mapView:(MKMapView *)mapView didUpdateUserLocation:(MKUserLocation *)userLocation\r\n{\r\n \r\n if ([self.proxy _hasListeners:@\"userLocation\"])\r\n {\r\n CLLocation* myLocation = [userLocation location];\r\n CLLocationCoordinate2D coord = [myLocation coordinate];\r\n \r\n NSDictionary * props = @{\r\n @\"latitude\": @(coord.latitude),\r\n @\"longitude\": @(coord.longitude),\r\n @\"heading\": @(myLocation.course ),\r\n @\"timestamp\": @([ myLocation.timestamp timeIntervalSince1970] * 1000 ),\r\n };\r\n \r\n [self.proxy fireEvent:@\"userLocation\" withObject:props];\r\n \r\n }\r\n \r\n \r\n}\r\n{code}", "updateAuthor": { "name": "vince", "key": "vince", "displayName": "Vincent ", "active": true, "timeZone": "Europe/Paris" }, "created": "2012-12-10T21:20:45.000+0000", "updated": "2012-12-10T21:20:45.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }