{ "id": "122187", "key": "TIMOB-15772", "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": [], "resolution": null, "resolutiondate": null, "created": "2013-11-07T04:58:28.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "SupportTeam" ], "versions": [ { "id": "15593", "description": "Release 3.1.3", "name": "Release 3.1.3", "archived": true, "released": true, "releaseDate": "2013-09-18" } ], "issuelinks": [], "assignee": null, "updated": "2018-02-28T20:04:18.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": "h4. Problem Description \r\n\r\nIf you have a Map View and add an annotation that has the \"image\" variable set with a custom image icon instead of a built in pin and you also have \"draggable\" set to true, you can not drag the pin around.\r\nIf you drag the pin around on the map it will pick it up and let you drag it to a new location. However, if you then drag the map around (not the pin) the annotation is locked into a pixel location on your screen and doesn't move with the map.\r\n\r\nIt is not locked into a GPS location on the Map View.\r\n\r\nh4. Extra information\r\nHere is a link to a video showing the bug in action:\r\nhttps://www.dropbox.com/s/ww0yqy7mmkmkp7v/annotation_image.mov\r\n\r\nh4. Steps to reproduce\r\n1.\tCreate a new project\r\n2.\tPaste test code in app.js\r\n{code}\r\nvar win = Ti.UI.createWindow();\r\n \r\nvar mountainView = Titanium.Map.createAnnotation({\r\n latitude : 37.390749,\r\n longitude : -122.081651,\r\n title : \"Appcelerator Headquarters\",\r\n subtitle : 'Mountain View, CA', \r\n draggable : true, \r\n image : '/images/pin.png',\r\n});\r\n \r\nvar mapview = Titanium.Map.createView({\r\n mapType : Titanium.Map.STANDARD_TYPE,\r\n region : {\r\n latitude : 37.390749,\r\n longitude : -122.081651,\r\n latitudeDelta : 0.04,\r\n longitudeDelta : 0.04\r\n },\r\n animate : true,\r\n regionFit : true,\r\n userLocation : true,\r\n annotations : [mountainView]\r\n});\r\n \r\nwin.add(mapview);\r\n \r\nwin.open();\r\n{code}\r\n3.\tNow run on iOS 7 with simulator 7.0 \r\n4.\tRandomly Click on map and annotation \r\n5.\tNow, drag the pin around the map. Next, drag the map view around\r\n\r\nh4. Discussions\r\n\r\nQ&A Question Link: http://developer.appcelerator.com/question/159186/", "attachment": [ { "id": "43730", "filename": "annotation_image.mov", "author": { "name": "abenzick", "key": "abenzick", "displayName": "Aaron Benzick", "active": true, "timeZone": "America/Chicago" }, "created": "2013-11-07T04:58:28.000+0000", "size": 5601781, "mimeType": "video/quicktime" } ], "flagged": false, "summary": "Map Annotation w/ Custom Image not Draggable", "creator": { "name": "abenzick", "key": "abenzick", "displayName": "Aaron Benzick", "active": true, "timeZone": "America/Chicago" }, "subtasks": [], "reporter": { "name": "abenzick", "key": "abenzick", "displayName": "Aaron Benzick", "active": true, "timeZone": "America/Chicago" }, "environment": "Application Type: iPhone Titanium SDK: 3.1.0 to 3.1.3 Platform: iOS 7 SDK Device: iOS simulator & physical device Host OS: OS X 10.9 Titanium Studio:Titanium Studio, build: 3.1.4.201310290744\r\n", "comment": { "comments": [ { "id": "279944", "author": { "name": "abenzick", "key": "abenzick", "displayName": "Aaron Benzick", "active": true, "timeZone": "America/Chicago" }, "body": "This is a mission critical bug for my app. Any updates on this?", "updateAuthor": { "name": "abenzick", "key": "abenzick", "displayName": "Aaron Benzick", "active": true, "timeZone": "America/Chicago" }, "created": "2013-11-18T05:57:51.000+0000", "updated": "2013-11-18T05:57:51.000+0000" }, { "id": "317875", "author": { "name": "titanium@webmasterei-hamburg.de", "key": "titanium@webmasterei-hamburg.de", "displayName": "Rainer Schleevoigt", "active": true, "timeZone": "Europe/Berlin" }, "body": "I have the same issue. But I think there is a workaround:\r\n\r\nAfter dragend you can remove and add new annotation", "updateAuthor": { "name": "titanium@webmasterei-hamburg.de", "key": "titanium@webmasterei-hamburg.de", "displayName": "Rainer Schleevoigt", "active": true, "timeZone": "Europe/Berlin" }, "created": "2014-08-10T15:09:49.000+0000", "updated": "2014-08-10T15:09:49.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }