{ "id": "62117", "key": "TIMOB-1485", "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": "10100", "description": "This issue won't be actioned.", "name": "Won't Do" }, "resolutiondate": "2020-02-12T13:31:28.000+0000", "created": "2011-04-15T02:54:04.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "api" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [], "assignee": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2020-02-12T13:31:29.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": "10224", "name": "TiAPI", "description": "This component is used for cross-platform API work. Specifications are most likely to use this component." } ], "description": "{html}

So ticket #1197 added support for custom pin images on\r\nmapviews, which works awesome. However, there's currently no way to\r\nset the centerOffset which means that the top of the image is\r\nalways aligned with the point on the map. That might work well for\r\nsome custom pin images, but if I actually use an image of a pin for\r\nthe custom pin image (imagine that :p) then the offset is wrong. If\r\nI zoom in on it I see the head of the pin is attached to the point\r\non the map rather than the base of the pin (which is what should\r\nbe).

\r\n

The solution is pretty simple, if \r\nhttp://stackoverflow.com/questions/1185611/mkpinannotationview-are-...\r\nis correct: you just need to allow us to set\r\nMKAnnotationView.centerOffset when using a custom image. Could this\r\nbe included in 1.5.0?

\r\n

(I'm a subscriber)

{html}", "attachment": [], "flagged": false, "summary": "TiAPI: Unable to set offset when using custom pins on mapview", "creator": { "name": "matthewlieder", "key": "matthewlieder", "displayName": "Matthew Lieder", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "matthewlieder", "key": "matthewlieder", "displayName": "Matthew Lieder", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "182775", "author": { "name": "falk", "key": "falk", "displayName": "MAIRDUMONT GmbH & Co. KG", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Agree with Matthew. From a design view you are very restricted if it is not possible to set a pixel offset to an annotation.\r\n\r\nPlease consider implementing this property. I'm sure not only Matthew and me want to use asymmetric images.", "updateAuthor": { "name": "falk", "key": "falk", "displayName": "MAIRDUMONT GmbH & Co. KG", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-02-10T12:03:30.000+0000", "updated": "2012-02-10T12:03:30.000+0000" }, { "id": "454207", "author": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "body": "is already implemented https://docs.appcelerator.com/platform/latest/#!/api/Modules.Map.Annotation-property-centerOffset", "updateAuthor": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "created": "2020-02-12T13:31:29.000+0000", "updated": "2020-02-12T13:31:29.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }