{ "id": "87473", "key": "TIMOB-7908", "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": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" }, { "id": "13170", "name": "Sprint 2012-06", "archived": true, "released": true, "releaseDate": "2012-03-25" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-05-03T10:47:56.000+0000", "created": "2012-03-06T17:12:59.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_map", "qe-testadded" ], "versions": [ { "id": "13070", "description": "Release 1.8 Service Pack 2", "name": "Release 1.8.2", "archived": true, "released": true, "releaseDate": "2012-02-29" } ], "issuelinks": [], "assignee": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-05-03T10:47:56.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": "The blue dot that is used to indicate the user's current location disappears randomly when adding and removing annotations.\r\n\r\nRun the attached sample app.js to reproduce the issue: (test only on the device)\r\n\r\n1. Initially, the user location and annotation is shown on the map.\r\n\r\n2. Now, click on the \"remove\" button to remove the annotation. Then click on \"add\" button to add a different annotation.\r\n\r\n3. The blue dot now disappears from the map.\r\n\r\nHere is the file: \r\n\r\n{code:title=app.js|borderStyle=solid}\r\n\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor:'white',\r\n fullscreen: false\r\n});\r\n\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 pincolor:Titanium.Map.ANNOTATION_RED,\r\n animate:true,\r\n leftButton: '../images/download.png',\r\n myid:1 // Custom property to uniquely identify this annotation.\r\n});\r\n \r\nvar mapview = Titanium.Map.createView({\r\n mapType: Titanium.Map.STANDARD_TYPE,\r\n //region: {latitude:33.74511, longitude:-84.38993, \r\n //latitudeDelta:0.01, longitudeDelta:0.01},\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\nvar bottomview = Ti.UI.createView({\r\n bottom: 0,\r\n height : 50,\r\n width : '100%',\r\n backgroundColor: 'gray'\r\n});\r\n\r\nwin.add(bottomview);\r\n\r\nvar removebutton = Ti.UI.createButton({\r\n top:10,\r\n left: 20,\r\n width: 100,\r\n title: 'Remove'\r\n});\r\nbottomview.add(removebutton);\r\n\r\nvar addbutton = Ti.UI.createButton({\r\n top:10,\r\n right: 20,\r\n width: 100,\r\n title: 'Add'\r\n});\r\nbottomview.add(addbutton);\r\n\r\nremovebutton.addEventListener('click', function(){\r\n mapview.removeAllAnnotations(); \r\n});\r\n\r\nvar addAnno = Titanium.Map.createAnnotation({\r\n latitude:37.490749,\r\n longitude:-122.081651,\r\n title:\"Added Annotation\",\r\n //subtitle:'add subtitle',\r\n pincolor: Titanium.Map.ANNOTATION_GREEN,\r\n animate:false,\r\n draggable:true\r\n }); \r\n\r\naddbutton.addEventListener('click', function(){\r\n mapview.addAnnotation (addAnno);\r\n});\r\n\r\n\r\nwin.open();\r\n\r\n{code}\r\n\r\n\r\nThis works on the simulator but not on iPad or iPhone device.", "attachment": [], "flagged": false, "summary": "iOS: User Location blue dot disappears often disappears on the device when using annotations", "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": "Platform OS: iOS 5.0\r\nDevice: iPhone and iPad\r\nTitanium SDK: 1.8.2\r\nTitanium Studio: 1.0.9\r\n", "comment": { "comments": [ { "id": "186475", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Merged pull #1663", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-14T13:24:40.000+0000", "updated": "2012-03-14T13:24:40.000+0000" }, { "id": "186881", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as Fixed.\r\n\r\nSDK: 2.0.0.v20120316130302\r\nStudio: 2.0.0.201203152033\r\nOS: Snow Leopard\r\nDevices Tested: iPad2 4.3.5, iPhone4 5.0.1\r\n\r\nNote: The simulator does not have a blue dot at all.", "updateAuthor": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-16T14:20:18.000+0000", "updated": "2012-03-16T14:20:18.000+0000" }, { "id": "193591", "author": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening to add/remove labels", "updateAuthor": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-03T10:47:06.000+0000", "updated": "2012-05-03T10:47:06.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }