{ "id": "121577", "key": "TIMOB-15613", "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": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2014-03-03T20:52:10.000+0000", "created": "2013-10-24T10:24:33.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "SupportTeam" ], "versions": [ { "id": "15593", "description": "Release 3.1.3", "name": "Release 3.1.3", "archived": true, "released": true, "releaseDate": "2013-09-18" } ], "issuelinks": [ { "id": "35511", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "109438", "key": "TIMOB-12733", "fields": { "summary": "MapView always asks permission for users location even if userLocation is set to false", "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": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-20T22:14:49.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 following code will show a alert asking the user for permission to use his current location, regardless if {{userLocation}} is set to {{false}} or unset:\r\n\r\n{code}\r\nvar win = Titanium.UI.createWindow({\r\n backgroundColor: '#fff'\r\n});\r\n\r\nwin.add(Ti.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.01,\r\n longitudeDelta: 0.01\r\n },\r\n userLocation: false\r\n}));\r\n\r\nwin.open();\r\n{code}\r\n\r\nh1. Cause\r\nWhen the map is initialized in [TiMapView.m|https://github.com/appcelerator/titanium_mobile/blob/master/iphone/Classes/TiMapView.m#L63], {{showsUsersLocation}} is always set to {{YES}}. Instead, this should depend on whether {{userLocation}} was set.", "attachment": [], "flagged": false, "summary": "iOS7: Ti.Map.View always asks for permission to use current location", "creator": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "subtasks": [], "reporter": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "environment": "SDK 3.1.3.GA\r\nCLI 3.1.2\r\niOS 7.0.3 Simulator\r\niOS 7.0.3 iPhone 4S", "comment": { "comments": [ { "id": "276563", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "The PR: https://github.com/appcelerator/titanium_mobile/pull/4843", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2013-10-24T10:28:18.000+0000", "updated": "2013-10-24T10:28:18.000+0000" }, { "id": "276565", "author": { "name": "rborn", "key": "rborn", "displayName": "Dan Tamas", "active": true, "timeZone": "Europe/Berlin" }, "body": "+1 on this :)", "updateAuthor": { "name": "rborn", "key": "rborn", "displayName": "Dan Tamas", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-10-24T10:37:31.000+0000", "updated": "2013-10-24T10:37:31.000+0000" }, { "id": "299239", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "tested \n{code}\nvar map = require(\"ti.map\");\nvar win = Titanium.UI.createWindow({\n backgroundColor: '#fff'\n});\n \nwin.add(map.createView({\n mapType: map.STANDARD_TYPE,\n region: {\n latitude: 37.390749,\n longitude: -122.081651,\n latitudeDelta: 0.01,\n longitudeDelta: 0.01\n },\n userLocation: false\n}));\n \nwin.open();\n{code}\nMac osx 10.9.2 Mavericks \nAppcelerator Studio, build: 3.2.3.201403271839 \nTitanium SDK, build:3.2.3.v20140327115429 \nNode.JS Version: v0.10.13 \nNPM Version: 1.3.2 \n/usr/local/lib \n├── acs@1.0.14 \n├── alloy@1.3.1 \n├── node-appc@0.2.0 \n├── npm@1.3.2 \n├── titanium@3.2.3-alpha2 \n└── titanium-code-processor@1.1.1-alpha \nDevices: \niPad air iOS 7.1 \niPhone 5S iOS 7.1", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-03-29T00:06:33.000+0000", "updated": "2014-03-29T00:06:33.000+0000" }, { "id": "414067", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as duplicate.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-20T22:14:49.000+0000", "updated": "2017-03-20T22:14:49.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }