{ "id": "148999", "key": "MOD-2164", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10034", "key": "MOD", "name": "Appcelerator Modules", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2016-02-10T09:08:52.000+0000", "created": "2015-06-22T15:52:57.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "map", "mapview" ], "versions": [], "issuelinks": [], "assignee": { "name": "ssombhatla", "key": "ssombhatla", "displayName": "Srikanth Sombhatla", "active": false, "timeZone": "Asia/Singapore" }, "updated": "2018-08-06T17:37:02.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": "13700", "name": "Map" } ], "description": "Just stumbled upon the same issue that was reported on github https://github.com/appcelerator-modules/ti.map/issues/100\r\n\r\nIf you change the radius property of a circle it does not update the view.\r\n\r\n{code:javascript}\r\nvar win = Ti.UI.createWindow();\r\nvar Map = require('ti.map');\r\nvar coords = {latitude: 37.3689, longitude: -122.0353};\r\nvar radius = 1000;\r\n\r\nvar map = Map.createView({\r\n mapType: Map.NORMAL_TYPE,\r\n region: {latitude: 37.3689, longitude: -122.0353, latitudeDelta: 1, longitudeDelta: 1 },\r\n});\r\nwin.add(map);\r\n\r\nvar circle = Map.createCircle({\r\n center: coords,\r\n radius: radius\r\n});\r\n\r\nmap.addCircle(circle);\r\nwin.open();\r\n\r\nsetTimeout(function(){\r\n circle.radius = radius * 2;\r\n}, 3000);\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: Modules.Map.Circle updating radius doesn't effect view", "creator": { "name": "manuellehner", "key": "manuellehner", "displayName": "Manuel Lehner", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "manuellehner", "key": "manuellehner", "displayName": "Manuel Lehner", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "closedSprints": [ { "id": 574, "state": "closed", "name": "2016 Sprint 4 SDK", "startDate": "2016-02-13T01:33:48.415Z", "endDate": "2016-02-27T01:33:00.000Z", "completeDate": "2016-02-29T03:44:48.886Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "370299", "author": { "name": "jnaher", "key": "jnaher", "displayName": "Jebun Naher", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello,\r\n\r\nWe are able to reproduce this issue in our environment. Updating the radius property is not working as expected.\r\n\r\n[Screenshot|http://postimg.org/image/qoopzkt3z/]\r\n\r\n*Testing Environment:*\r\nAppcelerator Studio, build: 4.3.3.201510212245\r\nAppcelerator Command-Line Interface, version 5.0.4\r\nMac Osx: 10.9.5\r\nTi sdk : 5.0.2\r\nNode.js Version : 0.12.7\r\nJdk: 1.7.0_65\r\nSimulator: iPhone4s(8.1)\r\n\r\n*TestCase:*\r\n{code}\r\nvar win = Ti.UI.createWindow();\r\nvar Map = require('ti.map');\r\nvar coords = {latitude: 37.3689, longitude: -122.0353};\r\nvar radius = 5000;\r\nvar map = Map.createView({\r\n mapType: Map.NORMAL_TYPE,\r\n region: {latitude: 37.3689, longitude: -122.0353, latitudeDelta: 1, longitudeDelta: 1 },\r\n});\r\nwin.add(map);\r\nvar circle = Map.createCircle({\r\n center: coords,\r\n radius: radius\r\n});\r\n map.addCircle(circle);\r\nwin.open();\r\nsetTimeout(function(){\r\n circle.radius = radius*4;\r\n alert(\"Time out\");\r\n}, 5000);\r\n{code}\r\n\r\n*Steps to test*\r\n1. Create a classic project\r\n2. Replace app.js with above code\r\n3. Run the app\r\n4. Wait for 5 sec\r\n\r\nExpected Output: The value of radius property should be updated after 5 sec\r\nActual Output: Radius property did not update\r\n\r\nThanks.\r\n", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-11-15T11:21:10.000+0000", "updated": "2016-02-10T05:14:57.000+0000" }, { "id": "376506", "author": { "name": "ssombhatla", "key": "ssombhatla", "displayName": "Srikanth Sombhatla", "active": false, "timeZone": "Asia/Singapore" }, "body": "Invalid bug.\r\n\r\n{{Modules.Map.Circle.radius}} is a creation-only property. Not supposed to be changed once created. \r\nhttps://docs.appcelerator.com/platform/latest/#!/api/Modules.Map.Circle-property-radius\r\n\r\nTo update circle, remove old circle and add a new circle as shown below.\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow();\r\nvar Map = require('ti.map');\r\nvar coords = {latitude: 37.3689, longitude: -122.0353};\r\nvar radius = 5000;\r\nvar map = Map.createView({\r\n mapType: Map.NORMAL_TYPE,\r\n region: {latitude: 37.3689, longitude: -122.0353, latitudeDelta: 1, longitudeDelta: 1 },\r\n});\r\nwin.add(map);\r\nvar circle = Map.createCircle({\r\n center: coords,\r\n radius: radius\r\n});\r\nmap.addCircle(circle);\r\nwin.open();\r\nconsole.log(\"circle:\"+circle+\" radius:\"+circle.radius);\r\nsetTimeout(function(){\r\n\r\n // Create new circle\r\n var newCircle = Map.createCircle({\r\n center: coords,\r\n radius: radius*4\r\n });\r\n \r\n // Remove old circle and add new circle\r\n map.removeCircle(circle);\r\n map.addCircle(newCircle);\r\n alert(\"Time out\");\r\n}, 5000);\r\n{code}\r\n\r\n", "updateAuthor": { "name": "ssombhatla", "key": "ssombhatla", "displayName": "Srikanth Sombhatla", "active": false, "timeZone": "Asia/Singapore" }, "created": "2016-02-10T09:08:11.000+0000", "updated": "2016-02-10T09:08:11.000+0000" }, { "id": "439921", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as invalid. If incorrect, please reopen.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-08-06T17:37:02.000+0000", "updated": "2018-08-06T17:37:02.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }