{ "id": "92614", "key": "TIMOB-9332", "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": "15547", "description": "2013 Sprint 14", "name": "2013 Sprint 14", "archived": true, "released": true, "releaseDate": "2013-07-15" }, { "id": "15548", "description": "2013 Sprint 14 API", "name": "2013 Sprint 14 API", "archived": true, "released": true, "releaseDate": "2013-07-15" }, { "id": "15479", "description": "Release 3.1.2", "name": "Release 3.1.2", "archived": true, "released": true, "releaseDate": "2013-07-31" }, { "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-07-02T22:51:53.000+0000", "created": "2012-05-31T11:44:04.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "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": [ { "id": "17661", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "inwardIssue": { "id": "92851", "key": "TIMOB-9403", "fields": { "summary": "Android: Map - Add centerOffset property to Ti.Map.Annotation", "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 } } } }, { "id": "17662", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "inwardIssue": { "id": "92852", "key": "TIMOB-9404", "fields": { "summary": "MobileWeb: Map - Add centerOffset property to Ti.Map.Annotation", "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": "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": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2013-07-29T09:29:16.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": "Add centerOffset property to a custom annotation to be able to set a x & y offset to the image of the annotation.\r\nRight now the center of the annotation is the center of the image size. This makes that some images appear not to be in their proper place at certain zoom levels.\r\n\r\nReference to official documentation: http://developer.apple.com/library/ios/#documentation/MapKit/Reference/MKAnnotationView_Class/Reference/Reference.html#//apple_ref/doc/uid/TP40008207\r\n\r\nI have already coded the feature and I open this ticket in order to get the pull request accepted.", "attachment": [], "flagged": false, "summary": "iOS: Map - Add centerOffset property to Ti.Map.Annotation", "creator": { "name": "joscandreu", "key": "joscandreu", "displayName": "Jose Carlos Andreu", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "joscandreu", "key": "joscandreu", "displayName": "Jose Carlos Andreu", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "iOS", "comment": { "comments": [ { "id": "196826", "author": { "name": "joscandreu", "key": "joscandreu", "displayName": "Jose Carlos Andreu", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I asked for a pull request: https://github.com/appcelerator/titanium_mobile/pull/2304", "updateAuthor": { "name": "joscandreu", "key": "joscandreu", "displayName": "Jose Carlos Andreu", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-01T03:04:55.000+0000", "updated": "2012-06-01T03:04:55.000+0000" }, { "id": "196827", "author": { "name": "joscandreu", "key": "joscandreu", "displayName": "Jose Carlos Andreu", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I provide a simple test case to check it's working.\r\nWhen centerOffset is used the bottom end of the pin should be in the (0,0). I added the route to have some reference to check that the annotation is being moved when using the property.\r\n\r\n{code:javascript}\r\nvar win = Ti.UI.createWindow({});\r\n\r\nvar mapView = Ti.Map.createView({\r\n height : '100%',\r\n width : '100%',\r\n mapType : Titanium.Map.STANDARD_TYPE,\r\n});\r\n\r\nvar route = {\r\n color : \"#000000\",\r\n name : \"route\",\r\n points : [{latitude: 0, longitude: 0},{latitude: 30, longitude: 30}],\r\n width : 12\r\n};\r\nmapView.addRoute(route);\r\n\r\nvar annotation0 = Ti.Map.createAnnotation({\r\n latitude: 0,\r\n longitude: 0,\r\n image: \"image.png\",\r\n title: \"pin\",\r\n //centerOffset: {x: 0, y: -24}\r\n});\r\n//This also works\r\nannotation0.setCenterOffset({x: 0, y: -24});\r\n\r\nmapView.addAnnotation(annotation0);\r\nwin.add(mapView);\r\nwin.open();\r\n{code}", "updateAuthor": { "name": "joscandreu", "key": "joscandreu", "displayName": "Jose Carlos Andreu", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-01T03:10:37.000+0000", "updated": "2012-06-01T03:10:37.000+0000" }, { "id": "196844", "author": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "body": "@Jose - we will get to this PR shortly.", "updateAuthor": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-01T09:02:05.000+0000", "updated": "2012-06-01T09:02:05.000+0000" }, { "id": "199316", "author": { "name": "joscandreu", "key": "joscandreu", "displayName": "Jose Carlos Andreu", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I updated the code in github. No one is assigned at the moment.\r\nDo I have to notify someone?", "updateAuthor": { "name": "joscandreu", "key": "joscandreu", "displayName": "Jose Carlos Andreu", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-20T05:07:46.000+0000", "updated": "2012-06-20T05:07:46.000+0000" }, { "id": "199331", "author": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "body": "@Jose - we are in the middle of a release (2.1.0) and hence the delay. We will get to this PR next week.", "updateAuthor": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-20T08:20:21.000+0000", "updated": "2012-06-20T08:20:21.000+0000" }, { "id": "240815", "author": { "name": "goodlime", "key": "goodlime", "displayName": "Julian Fraser", "active": true, "timeZone": "America/New_York" }, "body": "Any update on this? It's a fairly minor mod. This functionality is a relative necessity for anyone utilizing custom annotation images. The only current workaround is to create a pin image with 50% additional area transparent to give the appearance of the annotation in the correct position.", "updateAuthor": { "name": "goodlime", "key": "goodlime", "displayName": "Julian Fraser", "active": true, "timeZone": "America/New_York" }, "created": "2013-03-05T22:27:21.000+0000", "updated": "2013-03-05T22:27:21.000+0000" }, { "id": "245632", "author": { "name": "jjosef", "key": "jjosef", "displayName": "John Josef", "active": true, "timeZone": "America/New_York" }, "body": "I have corrected this for v3.0.2 and have it working and verified on iOS.\r\n\r\n@Julian you can copy these files to your own SDK on your local machine. (Usually located at ~/Library/Application Support/Titanium/mobilesdk/osx//iphone/Classes)\r\n\r\nhttps://github.com/appcelerator/titanium_mobile/pull/4074\r\n\r\n\r\n", "updateAuthor": { "name": "jjosef", "key": "jjosef", "displayName": "John Josef", "active": true, "timeZone": "America/New_York" }, "created": "2013-04-04T01:16:32.000+0000", "updated": "2013-04-04T01:16:32.000+0000" }, { "id": "260621", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Pull pending against master\r\nhttps://github.com/appcelerator/titanium_mobile/pull/4433", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-07-02T18:11:23.000+0000", "updated": "2013-07-02T18:11:23.000+0000" }, { "id": "260627", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Test Case\n{code}\nvar win = Titanium.UI.createWindow();\n\nvar mountainView = Titanium.Map.createAnnotation({\n latitude:37.390749,\n longitude:-122.081651,\n title:\"Appcelerator Headquarters\",\n subtitle:'Mountain View, CA',\n pincolor:Titanium.Map.ANNOTATION_RED,\n animate:true,\n leftButton: 'images/appcelerator_small.png',\n myid:1 // Custom property to uniquely identify this annotation.\n});\n\nvar mapview = Titanium.Map.createView({\n mapType: Titanium.Map.STANDARD_TYPE,\n region: {latitude:37.390749, longitude:-122.081651,\n latitudeDelta:0.01, longitudeDelta:0.01},\n animate:true,\n regionFit:true,\n userLocation:true,\n annotations:[mountainView]\n});\n\nvar container1 = Ti.UI.createView({\n height:Ti.UI.SIZE,\n top:0\n})\n\nvar container2 = Ti.UI.createView({\n height:Ti.UI.SIZE,\n bottom:0\n})\n\n\n\nwin.add(mapview);\n\nwin.add(container1);\nwin.add(container2);\n\nvar b1 = Ti.UI.createButton({\n title:'OFFSET 0,0',\n left:0\n})\n\nvar b2 = Ti.UI.createButton({\n title:'OFFSET 0,24',\n right:0\n})\n\nvar b3 = Ti.UI.createButton({\n title:'OFFSET 0,-24',\n left:0\n})\n\nvar b4 = Ti.UI.createButton({\n title:'OFFSET -24,24',\n right:0\n})\n\ncontainer1.add(b1);\ncontainer1.add(b2);\n\ncontainer2.add(b3);\ncontainer2.add(b4);\n\nb1.addEventListener('click',function(e){\n Ti.API.info('SET CENTEROFFSET WITH PROP TO 0,0');\n mountainView.centerOffset = {x:0,y:0};\n})\n\nb2.addEventListener('click',function(e){\n Ti.API.info('SET CENTEROFFSET WITH PROP TO 0,24');\n mountainView.centerOffset = {x:0,y:24};\n})\n\nb3.addEventListener('click',function(e){\n Ti.API.info('SET CENTEROFFSET WITH METHOD TO 0,-24');\n mountainView.setCenterOffset({x:0,y:-24})\n})\n\nb4.addEventListener('click',function(e){\n Ti.API.info('SET CENTEROFFSET WITH METHOD TO -24,24');\n mountainView.setCenterOffset({x:-24,y:24})\n})\n\n\nwin.open();\n{code}", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-07-02T18:27:07.000+0000", "updated": "2013-07-02T18:27:07.000+0000" }, { "id": "263187", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Backport to 3_1_X\nhttps://github.com/appcelerator/titanium_mobile/pull/4491", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-07-25T19:51:04.000+0000", "updated": "2013-07-25T19:51:04.000+0000" }, { "id": "263614", "author": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Updated label.\r\nClosing as Fixed.\r\nVerified with:\r\n\r\nStudio: 3.1.2.201307261628\r\nSDK: 3.1.2.v20130726192706\r\nacs:1.0.4\r\nalloy:1.2.0-alpha\r\ntitanium:3.1.1\r\ntitanium-code-processor:1.0.2-alpha\r\nOS: OSX 10.8.4\r\nDevice: ipad mini(v6.0)\r\nXcode:4.6.3\r\n\r\ncenterOffset property to Ti.Map.Annotation working well.", "updateAuthor": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-07-29T09:29:16.000+0000", "updated": "2013-07-29T09:29:16.000+0000" } ], "maxResults": 11, "total": 11, "startAt": 0 } } }