{ "id": "121019", "key": "ALOY-848", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "11113", "key": "ALOY", "name": "Alloy", "projectCategory": { "id": "10400", "description": "Tools for developing applications", "name": "Tooling" } }, "fixVersions": [ { "id": "15753", "description": "2013 Sprint 22", "name": "2013 Sprint 22", "archived": true, "released": true, "releaseDate": "2013-11-01" } ], "resolution": { "id": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2013-10-29T22:25:05.000+0000", "created": "2013-10-09T22:35:22.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "android" ], "versions": [], "issuelinks": [], "assignee": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-10-29T22:25:05.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": "12332", "name": "Titanium SDK", "description": "Any integration or issues with the TiSDK" } ], "description": "Started via developer question:\r\n\r\nhttp://developer.appcelerator.com/question/156954/bug-in-titanium-alloy-map\r\n\r\nI have started by using the following sample:\r\n\r\nhttps://github.com/appcelerator/alloy/tree/master/test/apps/ui/map\r\n\r\nRunning on a Production build with proper Google API Key I get the following when opening the map:\r\n\r\n{code}\r\n10-08 19:47:30.878: W/System.err(2337): IOException processing: 26\r\n10-08 19:47:30.878: W/System.err(2337): java.io.IOException: Server returned: 3\r\n10-08 19:47:30.878: W/System.err(2337): at android_maps_conflict_avoidance.com.google.googlenav.map.BaseTileRequest.readResponseData(BaseTileRequest.java:115)\r\n10-08 19:47:30.878: W/System.err(2337): at android_maps_conflict_avoidance.com.google.googlenav.map.MapService$MapTileRequest.readResponseData(MapService.java:1473)\r\n10-08 19:47:30.878: W/System.err(2337): at android_maps_conflict_avoidance.com.google.googlenav.datarequest.DataRequestDispatcher.processDataRequest(DataRequestDispatcher.java:1117)\r\n10-08 19:47:30.878: W/System.err(2337): at android_maps_conflict_avoidance.com.google.googlenav.datarequest.DataRequestDispatcher.serviceRequests(DataRequestDispatcher.java:994)\r\n10-08 19:47:30.878: W/System.err(2337): at android_maps_conflict_avoidance.com.google.googlenav.datarequest.DataRequestDispatcher$DispatcherServer.run(DataRequestDispatcher.java:1702)\r\n10-08 19:47:30.878: W/System.err(2337): at java.lang.Thread.run(Thread.java:864)\r\n{code}\r\n\r\nTo ensure it wasn't a key problem, I modified the project above and changed index.xml to:\r\n\r\n{code:xml} \r\n\r\n{code}\r\n\r\nAnd index.js to:\r\n\r\n{code:js} \r\nvar MapModule = require('ti.map');\r\n \r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: \"white\",\r\n navBarHidden: false,\r\n title: \"BETA Pub Crawl\"\r\n});\r\n \r\nvar mapview = MapModule.createView({\r\n mapType: MapModule.NORMAL_TYPE,\r\n region: {latitude:37.390749, longitude:-122.081651,\r\n latitudeDelta:0.01, longitudeDelta:0.01},\r\n animate:true,\r\n regionFit:true,\r\n enableZoomControls:true,\r\n touchEnabled:true,\r\n userLocation:true,\r\n zIndex:10\r\n});\r\n \r\nvar ann = MapModule.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:MapModule.ANNOTATION_RED,\r\n animate:true,\r\n annid:1, \r\n venueid:1 \r\n});\r\n \r\nmapview.addAnnotation(ann);\r\nwin.add(mapview);\r\nwin.open();\r\n{code}\r\n\r\nAnd the map opens as expected.", "attachment": [], "flagged": false, "summary": "Titanium Alloy Map not showing in production release", "creator": { "name": "kolchy", "key": "kolchy", "displayName": "Karl Kopp", "active": true, "timeZone": "Australia/Sydney" }, "subtasks": [], "reporter": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "environment": "Window 8, Titanium 3.1.3, Alloy 1.2.2, running on Android 4.2 on HTC One", "closedSprints": [ { "id": 21, "state": "closed", "name": "2013 Sprint 22", "startDate": "2013-10-21T20:22:56.406Z", "endDate": "2013-11-03T21:23:56.406Z", "completeDate": "2013-11-21T16:47:05.851Z" } ], "comment": { "comments": [ { "id": "276465", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~kolchy] it would help if you could show the actual alloy app you are using that's failing.", "updateAuthor": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-23T21:52:07.000+0000", "updated": "2013-10-23T21:52:07.000+0000" }, { "id": "276625", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This because by default Alloy does not use the Android v2 map module. So the traditional code you used and got to work does not actually match the generated Alloy code. In order to use the Android v2 map module with Alloy, follow this guide:\r\n\r\n* http://docs.appcelerator.com/titanium/latest/#!/guide/Google_Maps_v2_for_Android\r\n\r\nand use this Alloy app as an example:\r\n\r\n* https://github.com/appcelerator/alloy/tree/master/test/apps/testing/ALOY-817\r\n\r\nIn the future, I will update the ui/map example so that it uses the Android v2 maps by default.", "updateAuthor": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-24T17:27:12.000+0000", "updated": "2013-10-24T17:27:12.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }