{ "id": "93579", "key": "TIMOB-9673", "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": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2020-01-09T21:59:47.000+0000", "created": "2012-06-20T16:24:26.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "parity", "supportTeam" ], "versions": [ { "id": "12570", "name": "Release 1.7.5", "archived": true, "released": true, "releaseDate": "2011-11-02" } ], "issuelinks": [ { "id": "17913", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "outwardIssue": { "id": "65306", "key": "TIDOC-595", "fields": { "summary": "Map View incorrect types", "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": "Medium", "id": "3" }, "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } } ], "assignee": null, "updated": "2020-01-09T21:59:47.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": [], "description": "This is a clone of Pedro's original bug, which got turned into a doc bug. We are fixing the doc for 2.1, but this is an actual code bug which should be addressed in the future. \r\n\r\nAccording to the doc, Ti.Map.HYBRID_TYPE is defined as a map with satellite imagery with roads and road names, and Ti.Map.SATELLITE_TYPE is defined as a map with satellite imagery with _no_ roads or names.\r\n\r\nOn Android, specifying SATELLITE_TYPE brings up the map with satellite imagery and road names, i.e., a hybrid map. Google's Android Map APIs don't support a pure satellite map, so this is probably as good as we can do.\r\n\r\nHowever, on Android, HYBRID_TYPE for a map actually brings up a road map with _no_ satellite imagery.\r\n\r\nHere's why:\r\n\r\nhttps://github.com/appcelerator/titanium_mobile/blob/master/android/modules/map/src/java/ti/modules/titanium/map/TiMapView.java#L750\r\n{code}\r\n\tcase MAP_VIEW_HYBRID :\r\n\t\tview.setSatellite(false);\r\n\t\tview.setTraffic(false);\r\n\t\tview.setStreetView(true);\r\n\t\tbreak;\r\n{code}\r\n\r\nExpected behavior: HYBRID_TYPE on Android should match HYBRID_TYPE on iOS and Mobile Web. SATELLITE_TYPE should come as close as it can--which in this case is matching HYBRID_TYPE.\r\n\r\nIf we want to turn on traffic or street view, IMO that should be a separate switch.\r\n\r\nTest Code:\r\n{code}\r\nTi.UI.backgroundColor = \"white\";\r\nvar win = Ti.UI.createWindow({\r\n exitOnClose: true\r\n});\r\nvar mapTypes = [ Ti.Map.STANDARD_TYPE, Ti.Map.HYBRID_TYPE, Ti.Map.SATELLITE_TYPE];\r\nvar mapTypeNames = [ \"Standard\", \"Hybrid\", \"Satellite\"];\r\nvar currentType = 0;\r\nvar mapview = Ti.Map.createView({\r\n mapType: Ti.Map.STANDARD_TYPE,\r\n region:{latitude:33.74511, longitude:-84.38993, latitudeDelta:0.5, longitudeDelta:2.5},\r\n animate:true,\r\n regionFit:true,\r\n userLocation:true,\r\n height: '80%',\r\n width: Ti.UI.FILL,\r\n top: 0\r\n});\r\nwin.add(mapview);\r\nvar label = Ti.UI.createLabel({\r\n\ttext: 'Standard',\r\n\twidth: Ti.UI.FILL,\r\n\theight: '20%',\r\n\ttextAlign: Ti.UI.TEXT_ALIGNMENT_CENTER,\r\n\tcolor: '#55f',\r\n\tbottom: 0\r\n});\r\nwin.add(label);\r\nwin.open();\r\nwin.addEventListener('click', function(e) {\r\n\tcurrentType = (currentType + 1) % mapTypes.length;\r\n\tTi.API.info(\"Setting map type to: \" + currentType);\r\n\tlabel.text = mapTypeNames[currentType];\r\n\tmapview.mapType = mapTypes[currentType];\r\n});\r\n{code}\r\n\r\nLabel displays the current map type. Click the label to change map types.\r\n\r\nExpected behavior: \r\n\r\nHybrid view should show satellite image with roads and names overlaid.\r\n\r\nActual behavior:\r\n\r\nHybrid view shows road map, not satellite image.\r\n\r\nFrom the original bug:\r\nIn Android:\r\n- Titanium.Map.SATELLITE_TYPE -> hybrid map\r\n- Titanium.Map.HYBRID_TYPE -> nothing happens.\r\n\r\nTo test open KS:\r\nBase UI -> Views -> Map View -> Menu Button -> Hyb and Sat\r\n\r\nTested in Android Emulator APIs 2.2\r\nand Droid Device running 2.2.2\r\n\r\nHelpdesk Ticket: http://support.appcelerator.com/tickets/KTM-16476-116/homepage", "attachment": [], "flagged": false, "summary": "Android - Map View HYBRID_TYPE does not include satellite imagery", "creator": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Android Emulator and Device", "comment": { "comments": [], "maxResults": 2, "total": 2, "startAt": 0 } } }