{ "id": "98236", "key": "TIMOB-10220", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "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": "13870", "description": "", "name": "Sprint 2012-16 API", "archived": true, "released": true, "releaseDate": "2012-08-13" }, { "id": "14096", "description": "Release 2.1.2", "name": "Release 2.1.2", "archived": true, "released": true, "releaseDate": "2012-08-31" }, { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-08-14T11:02:30.000+0000", "created": "2012-07-27T15:06:27.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "SupportTeam", "api", "module_map", "qe-testadded" ], "versions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" } ], "issuelinks": [], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2012-08-14T18:01:14.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": "h3. Issue\r\n\r\nIn iOS the annotations on both retina and non-retina devices are offset from the pins top and they also overlap the pin. The annotation should be directly above the pin with no overlap like iOS does in its native maps application. \r\n\r\nThe screenshots illustrate this issue. Notice in the native maps application the caret is directly above the pin. It does not overlap the pin and it is not offset. \r\n\r\nh3. Sample Code\r\n\r\n{noformat}\r\n\r\nvar win = Ti.UI.createWindow();\r\nwin.open();\r\n\r\n //create object instance, a parasitic subclass of Observable\r\n var self = Ti.UI.createView();\r\n \r\n var mapObject = Titanium.Map.createView({\r\n mapType: Titanium.Map.STANDARD_TYPE,\r\n animate:true,\r\n regionFit:true,\r\n userLocation:true,\r\n height:Ti.UI.FILL,\r\n zoomEnabled:true,\r\n region: {latitude:37.77501, longitude:-122.419, \r\n latitudeDelta:0.01, longitudeDelta:0.01},\r\n });\r\n \r\n\r\n \r\n var selectAnnotations = Ti.UI.createButton({\r\n title:\"Select Annotations\",\r\n bottom:'20dp',\r\n height:'35dp',\r\n width:'180dp'\r\n });\r\n \r\n \r\n var annotation = Titanium.Map.createAnnotation({\r\n animate:true,\r\n title: 'Hello I am an annotation with lots of information:',\r\n subtitle: 'This is a subtitle to an large annotation', \r\n pincolor:Titanium.Map.ANNOTATION_RED,\r\n latitude:parseFloat(37.776),\r\n longitude:parseFloat(-122.419)\r\n });\r\n \r\n var annotation2 = Titanium.Map.createAnnotation({\r\n animate:true,\r\n title: '#2 Hello I am an annotation with lots of information:',\r\n subtitle: 'This is a subtitle to an large annotation', \r\n pincolor:Titanium.Map.ANNOTATION_RED,\r\n latitude:parseFloat(37.77501),\r\n longitude:parseFloat(-122.419)\r\n });\r\n \r\n var annotation3 = Titanium.Map.createAnnotation({\r\n animate:true,\r\n title: '#3 Hello I am an annotation with lots of information:',\r\n subtitle: 'This is a subtitle to an large annotation', \r\n pincolor:Titanium.Map.ANNOTATION_RED,\r\n latitude:parseFloat(37.770),\r\n longitude:parseFloat(-122.419)\r\n });\r\n \r\n \r\n var annotation4 = Titanium.Map.createAnnotation({\r\n animate:true,\r\n title: '#4 Hello I am an annotation with lots of information:',\r\n subtitle: 'This is a subtitle to an large annotation', \r\n pincolor:Titanium.Map.ANNOTATION_RED,\r\n latitude:parseFloat(37.770),\r\n longitude:parseFloat(-122.43)\r\n });\r\n \r\n \r\n \r\n mapObject.addAnnotation(annotation);\r\n mapObject.addAnnotation(annotation2);\r\n mapObject.addAnnotation(annotation3);\r\n mapObject.addAnnotation(annotation4);\r\n \r\n self.add(mapObject);\r\n self.add(selectAnnotations);\r\n \r\n \r\n var thisObj = this;\r\n selectAnnotations.addEventListener('click', function(e) {\r\n mapObject.selectAnnotation({annotation: annotation2, center: false});\r\n\r\n });\r\n\r\nwin.add(self);\r\n\r\n{noformat} \r\n", "attachment": [ { "id": "30126", "filename": "iOS-Native.png", "author": { "name": "vjoshi", "key": "vjoshi", "displayName": "Varun Joshi", "active": true, "timeZone": "America/New_York" }, "created": "2012-07-27T21:34:38.000+0000", "size": 745671, "mimeType": "image/png" }, { "id": "30127", "filename": "iOS-Titanium.png", "author": { "name": "vjoshi", "key": "vjoshi", "displayName": "Varun Joshi", "active": true, "timeZone": "America/New_York" }, "created": "2012-07-27T21:34:38.000+0000", "size": 172938, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: Annotations caret is offset from pin top and overlaps pin top", "creator": { "name": "vjoshi", "key": "vjoshi", "displayName": "Varun Joshi", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "vjoshi", "key": "vjoshi", "displayName": "Varun Joshi", "active": true, "timeZone": "America/New_York" }, "environment": "Titanium SDK: 2.1.0.GA\r\nPlatform OS: iOS 5.1", "comment": { "comments": [ { "id": "210702", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Pull pending https://github.com/appcelerator/titanium_mobile/pull/2662", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-07-31T09:47:13.000+0000", "updated": "2012-07-31T09:47:13.000+0000" }, { "id": "214359", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "h4.NOTE\r\nTest case select Annotation click event listener is wrong. It should be calling.\r\n{code}mapObject.selectAnnotation(annotation2);{code}", "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-14T10:59:59.000+0000", "updated": "2012-08-14T10:59:59.000+0000" }, { "id": "214360", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening to update Fixversion to Release 2.1.2 label", "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-14T11:02:17.000+0000", "updated": "2012-08-14T11:02:17.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }