{ "id": "62755", "key": "TIMOB-2123", "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": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2012-07-26T11:50:02.000+0000", "created": "2011-04-15T03:11:07.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "annotation", "ios", "iphone", "map" ], "versions": [], "issuelinks": [ { "id": "19369", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "94532", "key": "TIMOB-9901", "fields": { "summary": "TiAPI: Review and clean up platform bugs and reduce bug count by 20%.", "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": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } } ], "assignee": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-07-26T22:15:42.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": "{html}

If you create a map view with userLocation:true and add\nannotations with custom images, the annotation images cover the\nuserLocation marker. The following example code illustrates the\nbug, assuming you have an annotation.jpg, a trivial example of\nwhich I attached.

\n
\nTitanium.UI.setBackgroundColor('#000');\n\nvar win = Titanium.UI.createWindow({  \n    title:'Map Bug',\n    backgroundColor:'#fff'\n});\n\nvar mapview = Titanium.Map.createView({\n    mapType: Titanium.Map.STANDARD_TYPE,\n    region: {latitude:0, longitude:0, \n        latitudeDelta:90, longitudeDelta:180},\n    animate:true,\n    regionFit:true,\n    userLocation:true\n});\nwin.add(mapview);\n\nfunction updateMapLocation(e) {\n    if (!e.success) { return; }\n\n    var longitude = e.coords.longitude;\n    var latitude = e.coords.latitude;\n\n    var annotation = Ti.Map.createAnnotation({\n        latitude:latitude,\n        longitude:longitude,\n        title:'Overlapping annotation',\n        image:'images/annotation.jpg'\n    });\n    mapview.addAnnotation(annotation);\n\n    var region = {latitude:latitude, longitude:longitude, latitudeDelta:0.05, longitudeDelta:0.05, animate:true};\n    mapview.setLocation(region);\n}\n\nTitanium.Geolocation.purpose = \"For testing\";\n\nvar b = Ti.UI.createButton({title:'Add Annotation', style:Titanium.UI.iPhone.SystemButtonStyle.BORDERED});\nb.addEventListener('click', function(e) {\n    if (Titanium.Platform.model == 'Simulator') {\n        var l = {success:true, coords:{latitude:37.3317, longitude:-122.0307}};\n        updateMapLocation(l);\n    } else {\n        Titanium.Geolocation.getCurrentPosition(updateMapLocation);\n    }\n});\n\nvar flexSpace = Titanium.UI.createButton({\n    systemButton:Titanium.UI.iPhone.SystemButton.FLEXIBLE_SPACE\n});\nvar tb = Titanium.UI.createToolbar({bottom:0, items:[flexSpace,b,flexSpace]});\nwin.add(tb);\n\nwin.open();\n
{html}", "attachment": [ { "id": "18107", "filename": "annotation.jpg", "author": { "name": "jonathanharlap", "key": "jonathanharlap", "displayName": "Jonathan Harlap", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:11:08.000+0000", "size": 817, "mimeType": "image/jpeg" } ], "flagged": false, "summary": "iPhone Map user location is covered by annotations with custom images", "creator": { "name": "jonathanharlap", "key": "jonathanharlap", "displayName": "Jonathan Harlap", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jonathanharlap", "key": "jonathanharlap", "displayName": "Jonathan Harlap", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "209664", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Expected behavior.", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-26T11:50:02.000+0000", "updated": "2012-07-26T11:50:02.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }