{ "id": "161662", "key": "MOD-2268", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "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": [ { "id": "17610", "name": "Release 6.1.0", "archived": false, "released": true } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-03-20T19:20:49.000+0000", "created": "2016-07-10T22:27:00.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "Ti.Map", "android", "module" ], "versions": [], "issuelinks": [], "assignee": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2017-05-18T22:11:19.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": "Currently we don't have access to the *visible* property of *Markers*. It would be good to have access to that. Also, it would be nice to support the *alpha* property of the native MKCircle.\r\n\r\n*EDIT by Hans*: Additionally, I'd like to remove the legacy {{TiMapIOS7View}} class that has been around for < iOS 7 support. Nowadays we do not support this anymore, so we should clean it up.", "attachment": [], "flagged": false, "summary": "iOS/Android: Ti.Map - Support for the visible property, add circle-opacity, refactor old view, fix deprecations", "creator": { "name": "rdperottoni", "key": "rdperottoni", "displayName": "Rodolfo Perottoni", "active": true, "timeZone": "Australia/Brisbane" }, "subtasks": [], "reporter": { "name": "rdperottoni", "key": "rdperottoni", "displayName": "Rodolfo Perottoni", "active": true, "timeZone": "Australia/Brisbane" }, "environment": null, "closedSprints": [ { "id": 796, "state": "closed", "name": "2017 Sprint 02 SDK", "startDate": "2017-01-15T00:00:41.845Z", "endDate": "2017-01-29T00:00:00.000Z", "completeDate": "2017-01-30T21:10:44.640Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "390238", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "PR (cherry-picked): https://github.com/appcelerator-modules/ti.map/pull/192", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-07-10T22:40:39.000+0000", "updated": "2016-12-19T14:14:17.000+0000" }, { "id": "404681", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Test code for visible property of annotation- \r\n\r\n{code:js}\r\nvar Map = require('ti.map');\r\nvar win = Ti.UI.createWindow();\r\n \r\nvar anno = Map.createAnnotation({\r\n latitude: -33.87365, \r\n image: 'map_pin.png', \r\n longitude: 151.20689, \r\n title: \"Sydney\", \r\n subtitle: \"Sydney is quite chill\", \r\n hidden:false\r\n});\r\n \r\nvar button1 = Ti.UI.createButton({\r\n left :10,\r\n top:10,\r\n width:80,\r\n title: 'Show Annotation'\r\n})\r\n \r\nvar button2 = Ti.UI.createButton({\r\n right :10,\r\n top:10,\r\n width:80,\r\n title: 'Hide Annotation'\r\n}) \r\nvar button3 = Ti.UI.createButton({\r\n left :120,\r\n top:10,\r\n width:80,\r\n title: 'Annotation state'\r\n})\r\nbutton1.addEventListener('click', function(){\r\n anno.hidden = false;\r\n});\r\n \r\nbutton2.addEventListener('click', function(){\r\n anno.hidden = true;\r\n});\r\n \r\nbutton3.addEventListener('click', function(){\r\n Ti.API.info('Annotation hidden? ' + anno.hidden);\r\n});\r\n \r\nwin.add(button1);\r\nwin.add(button2);\r\nwin.add(button3);\r\n \r\nTi.API.info (\"Latitude:\" + anno.latitude);\r\nTi.API.info (\"Title:\" + anno.title);\r\n \r\nvar map = Map.createView({\r\n userLocation: true,\r\n mapType: Map.NORMAL_TYPE,\r\n animate: true,\r\n annotations: [anno],\r\n region: {latitude: -33.87365, longitude: 151.20689, latitudeDelta: 0.1, longitudeDelta: 0.1 }, //Sydney\r\n top: '50%'\r\n});\r\nTi.API.info(\"userLocation: \" + map.userLocation);\r\nwin.add(map);\r\n \r\nmap.addEventListener('click', function(e) {\r\n Ti.API.info(\"Latitude: \" + ann.latitude);\r\n Ti.API.info(\"Source: \" + e.clicksource);\r\n});\r\n \r\nwin.open();\r\n{code}\r\n", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-01-17T08:04:22.000+0000", "updated": "2017-02-02T13:04:53.000+0000" }, { "id": "404844", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "[~rdperottoni] The {{visible}} property does not seem to work when you set it after the initial state. I'll try to figure out why.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-01-19T09:50:24.000+0000", "updated": "2017-01-19T09:50:24.000+0000" }, { "id": "419978", "author": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Verified implemented using iOS module 2.9.0 and Android module 3.1.1.\r\n\r\nVisible property (hidden on iOS), Circles, Opacity property for circles and color values for fill-color on circles and pin colors are all working. A parity issue was found during testing where iOS will accept strings and hex values for colors on circles, pins, and annotations, where Android will only accept the constants. This difference is documented, however. Thanks [~smohammed] for the Android testing.", "updateAuthor": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-05-18T22:11:19.000+0000", "updated": "2017-05-18T22:11:19.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }