{ "id": "123051", "key": "TIMOB-15850", "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": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2013-12-02T18:47:42.000+0000", "created": "2013-11-29T09:44:51.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "qe-3.2.0" ], "versions": [ { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-12-02T18:52:20.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": "iOS7: Map: Runtime error while creating Ti.Map.createView method\r\nIssue also exist on SDK: 3.1.3.GA using xcode v5\r\n\r\nSteps to reproduce:\r\n1.Run the app below.\r\n{code}\r\nvar win = Ti.UI.currentWindow,\r\n mapView = Ti.Map.createView({\r\n mapType: Ti.Map.STANDARD_TYPE,\r\n height: 150,\r\n top:0,\r\n regionFit:true,\r\n userLocation:true,\r\n annotations:[]\r\n }),\r\n resizeBtn = Ti.UI.createButton({\r\n title:\"resize map\",\r\n width:100,\r\n height:44,\r\n right:5,\r\n bottom:5\r\n }),\r\n mapToggle = false;\r\n\r\n if (Ti.Platform.osname === \"iphone\" || Ti.Platform.osname === \"ipad\") {\r\n mapView.animate = true;\r\n }\r\n mapView.add(resizeBtn);\r\n win.add(mapView);\r\n\r\n resizeBtn.addEventListener(\"click\", function(){\r\n mapToggle = !mapToggle;\r\n if(mapToggle){\r\n mapView.animate({height:250, duration:300});\r\n } else {\r\n mapView.animate({height:150, duration:300});\r\n }\r\n });\r\n win.open();\r\n\r\n{code}\r\n\r\nExpected:\r\nYou should see a world map. \r\n\r\nActual:\r\nRuntime error occurs as \"\r\nNov 29 15:09:16 Globals-iPhone-5s test[362] : [ERROR] Script Error {\r\n\t backtrace = \"#0 () at :0\";\r\n\t line = 1;\r\n\t message = \"'undefined' is not an object (evaluating 'Ti.Map.createView')\";\r\n\t name = TypeError;\r\n\t sourceId = 48064800;\r\n\t sourceURL = \"file:///var/mobile/Applications/9BBC5C5D-3DD9-470C-B9C9-1415003F0B11/test.app/app.js\";\r\n\t} \"\r\n", "attachment": [], "flagged": false, "summary": "iOS7: Map: Runtime error while creating Ti.Map.createView method", "creator": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "subtasks": [], "reporter": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "environment": "Tested on:\r\nDevice : iPhone 5s , iOS version : 7.0.2\r\nSDK: 3.2.0.v20131127194046\r\nCLI version : 3.2.0-beta\r\nOS : MAC OSX 10.9\r\nAlloy: 1.3.0-beta\r\nACS: 1.0.9\r\nAppcelerator Studio, build: 3.2.0.201311272052\r\ntitanium-code-processor: 1.1.0-beta\r\nXCode : 5.0.2", "comment": { "comments": [ { "id": "281928", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as invalid. Ti.Map has been deprecated for SDK 3.2.0 and needs to require in ti.map module (http://docs.appcelerator.com/titanium/latest/#!/api/Titanium.Map).\r\n\r\nHere is the positive test case I used to get it working after requiring in the ti.map module:\r\n{code}\r\nvar Map = require('ti.map');\r\n\r\n// var win = Ti.UI.currentWindow,\r\n\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor:'white'\r\n}), \r\n\r\nmapView = Map.createView({\r\n\tmapType : Map.STANDARD_TYPE,\r\n\theight : 150,\r\n\ttop : 0,\r\n\tregionFit : true,\r\n\tuserLocation : true,\r\n\tannotations : []\r\n}), \r\n\r\nresizeBtn = Ti.UI.createButton({\r\n\ttitle : \"resize map\",\r\n\twidth : 100,\r\n\theight : 44,\r\n\tright : 5,\r\n\tbottom : 5\r\n}), mapToggle = false;\r\n\r\nif (Ti.Platform.osname === \"iphone\" || Ti.Platform.osname === \"ipad\") {\r\n\tmapView.animate = true;\r\n}\r\nmapView.add(resizeBtn);\r\nwin.add(mapView);\r\n\r\nresizeBtn.addEventListener(\"click\", function() {\r\n\tmapToggle = !mapToggle;\r\n\tif (mapToggle) {\r\n\t\tmapView.animate({\r\n\t\t\theight : 250,\r\n\t\t\tduration : 300\r\n\t\t});\r\n\t} else {\r\n\t\tmapView.animate({\r\n\t\t\theight : 150,\r\n\t\t\tduration : 300\r\n\t\t});\r\n\t}\r\n});\r\nwin.open(); \r\n{code}\r\n\r\nTested on:\r\n\r\nTitanium Studio, build: 3.2.0.201311262027\r\nSDK build: 3.2.0.v20131127194046\r\nCLI: 3.2.0-beta\r\nAlloy: 1.3.0-beta\r\nXcode: 5.0.2\r\nDevice: iphone 5 (7.0.2)", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-12-02T18:44:52.000+0000", "updated": "2013-12-02T18:47:32.000+0000" }, { "id": "281929", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Reopening ticket to update which test environment I used.", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-12-02T18:46:28.000+0000", "updated": "2013-12-02T18:46:28.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }